aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2010-10-24 00:52:57 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2010-10-24 00:52:57 +0000
commit8ebf73154842d026d0a27749e2bef1306d74f76f (patch)
treebf7b8cf2041899750f6d6cc6c552bcdadecc3426
parentacc24379040f4110f4cf3551c68bced7eb3ea6af (diff)
downloadperl-URPM-8ebf73154842d026d0a27749e2bef1306d74f76f.tar
perl-URPM-8ebf73154842d026d0a27749e2bef1306d74f76f.tar.gz
perl-URPM-8ebf73154842d026d0a27749e2bef1306d74f76f.tar.bz2
perl-URPM-8ebf73154842d026d0a27749e2bef1306d74f76f.tar.xz
perl-URPM-8ebf73154842d026d0a27749e2bef1306d74f76f.zip
drop rather useless memset() before free()...
-rw-r--r--xfile.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/xfile.h b/xfile.h
index 2ca8902..c8973f5 100644
--- a/xfile.h
+++ b/xfile.h
@@ -45,7 +45,6 @@ static lzma_FILE *lzma_open(lzma_ret *lzma_error, FILE *fp, uint64_t memlimit)
if (*ret != LZMA_OK) {
(void) fclose(lzma_file->fp);
- memset(lzma_file, 0, sizeof(*lzma_file));
free(lzma_file);
return NULL;
}