fix mem_destroy

This commit is contained in:
ruti 2024-03-26 23:49:52 +03:00
parent b0277dba6b
commit a71def353b

View File

@ -125,6 +125,7 @@ void mem_destroy(struct mphdr *hdr)
free(e);
hdr->values[i] = 0;
}
free(hdr->values);
memset(hdr, 0, sizeof(*hdr));
free(hdr);
}