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