mirror of
https://github.com/hufrea/byedpi.git
synced 2025-03-14 04:48:53 +03:00
fix mem_destroy
This commit is contained in:
parent
b0277dba6b
commit
a71def353b
1 changed files with 1 additions and 0 deletions
1
mpool.c
1
mpool.c
|
@ -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);
|
||||
}
|
Loading…
Add table
Reference in a new issue