# HG changeset patch # User Olaf Wintermann # Date 1730108219 -3600 # Node ID 9904eee3ca9aee133aec1f86f281b60665be43cd # Parent 23f3b02c6725da761eaa2f52d5f93b5358ab706e fix crash when removing pwdentries without locations diff -r 23f3b02c6725 -r 9904eee3ca9a libidav/pwdstore.c --- a/libidav/pwdstore.c Mon Oct 28 09:37:04 2024 +0100 +++ b/libidav/pwdstore.c Mon Oct 28 10:36:59 2024 +0100 @@ -235,7 +235,9 @@ PwdEntry *e = cxMapRemoveAndGet(s->ids, key); if(i) { - cxListDestroy(i->locations); + if(i->locations) { + cxListDestroy(i->locations); + } free(i->id); free(i); }