--- 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);
}