Fix leak in associative array implementation

This commit is contained in:
William Robinet 2021-01-15 11:51:02 +01:00
parent 6073bd8954
commit 1ad3de3fc8

View file

@ -121,6 +121,9 @@ int r_assoc_destroy(assocp)
for(i=0;i<assoc->size;i++) for(i=0;i<assoc->size;i++)
destroy_assoc_chain(assoc->chains[i]); destroy_assoc_chain(assoc->chains[i]);
free(assoc->chains);
free(assoc);
return(0); return(0);
} }