summaryrefslogtreecommitdiffstats
path: root/src/file_zip.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-01-29 08:53:42 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-01-29 08:53:42 +0100
commit77f095422316289af374a59423e3f0ccc9602ed3 (patch)
tree0e41c6bcd5e0bba49ea3bb3c7429f05a59cab6d0 /src/file_zip.c
parenta48dbbd42593f8ab889ad3fe678b5d67a2a824b7 (diff)
Fix a few memory leaks found using Coccinelle, http://www.emn.fr/x-info/coccinelle/
Diffstat (limited to 'src/file_zip.c')
-rw-r--r--src/file_zip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/file_zip.c b/src/file_zip.c
index c59047f..8223281 100644
--- a/src/file_zip.c
+++ b/src/file_zip.c
@@ -161,6 +161,7 @@ static int zip_parse_file_entry(file_recovery_t *fr)
#ifdef DEBUG_ZIP
log_trace("zip: Unexpected EOF in file_entry header: %u bytes expected\n", len);
#endif
+ free(filename);
return -1;
}
filename[len]='\0';