Changeset 6cd69a0


Ignore:
Timestamp:
Jul 15, 2013 9:35:43 AM (6 years ago)
Author:
Ted Faber <faber@…>
Branches:
abac0-leak, abac0-mei, master
Children:
1546962
Parents:
3c30b59
Message:

Duplicate returned string to avoid double free.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libabac/abac_keyid_map.c

    rd2b198c r6cd69a0  
    8787    HASH_FIND_STR(m->keys, key, me);
    8888
    89     if ( me ) return me->value;
     89    if ( me ) return abac_xstrdup(me->value);
    9090    else return NULL;
    9191}
     
    9797    HASH_FIND_STR(m->nicknames, nick, me);
    9898
    99     if ( me ) return me->value;
     99    if ( me ) return abac_xstrdup(me->value);
    100100    else return NULL;
    101101}
Note: See TracChangeset for help on using the changeset viewer.