libidav/pwdstore.c

changeset 840
9904eee3ca9a
parent 839
23f3b02c6725
child 841
21403bdaf54c
equal deleted inserted replaced
839:23f3b02c6725 840:9904eee3ca9a
233 CxHashKey key = cx_hash_key_str(id); 233 CxHashKey key = cx_hash_key_str(id);
234 PwdIndexEntry *i = cxMapRemoveAndGet(s->index, key); 234 PwdIndexEntry *i = cxMapRemoveAndGet(s->index, key);
235 PwdEntry *e = cxMapRemoveAndGet(s->ids, key); 235 PwdEntry *e = cxMapRemoveAndGet(s->ids, key);
236 236
237 if(i) { 237 if(i) {
238 cxListDestroy(i->locations); 238 if(i->locations) {
239 cxListDestroy(i->locations);
240 }
239 free(i->id); 241 free(i->id);
240 free(i); 242 free(i);
241 } 243 }
242 if(e) { 244 if(e) {
243 free(e->id); 245 free(e->id);

mercurial