diff options
author | Neven Sajko <nsajko@gmail.com> | 2019-08-11 02:11:02 +0000 |
---|---|---|
committer | Dan Cross <crossd@gmail.com> | 2020-01-07 15:27:58 -0500 |
commit | 2897735523dd05a4ef21d25d3d99fa7fa0b24b44 (patch) | |
tree | 0a36b413a18de1be0c6a31e3335489061e32c017 /src/libmach | |
parent | 2c97de1a26686adf2a6377bc4ef18d1aec6a1f3a (diff) | |
download | plan9port-2897735523dd05a4ef21d25d3d99fa7fa0b24b44.tar.gz plan9port-2897735523dd05a4ef21d25d3d99fa7fa0b24b44.tar.bz2 plan9port-2897735523dd05a4ef21d25d3d99fa7fa0b24b44.zip |
libmach: plug another memory leak
Change-Id: Ia5c888db1f0ded2aa92238d994239e46bf52667a
Diffstat (limited to 'src/libmach')
-rw-r--r-- | src/libmach/crack.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libmach/crack.c b/src/libmach/crack.c index 6d167404..5695b7eb 100644 --- a/src/libmach/crack.c +++ b/src/libmach/crack.c @@ -69,6 +69,7 @@ crackhdr(char *name, int mode) return hdr; } werrstr("unknown file type: %r"); + free(hdr->filename); free(hdr); close(fd); return nil; @@ -89,6 +90,7 @@ uncrackhdr(Fhdr *hdr) for(i=0; i<hdr->nthread; i++) free(hdr->thread[i].ureg); free(hdr->thread); + free(hdr->filename); free(hdr); } |