X-Git-Url: https://pd.if.org/git/?p=zpackage;a=blobdiff_plain;f=lib%2Fzpm.c;h=9b208cc59a237dbabc28319cb7f56ac411bef8ec;hp=359c0953e6608d091bc12f2a950ed34677db3ca1;hb=339988d64465820bfce614d4939cdf6a03cd3c51;hpb=b05cc6682e2cba965f2cabc98cccdd79d008f31b diff --git a/lib/zpm.c b/lib/zpm.c index 359c095..9b208cc 100644 --- a/lib/zpm.c +++ b/lib/zpm.c @@ -398,6 +398,7 @@ int zpm_extract(struct zpm *pkg, char *hash, char *path, mode_t mode) { tmpfile, strerror(errno)); sqlite3_finalize(ifile); sqlite3_close(db); + free(tmpfile); return 0; } } else { @@ -432,6 +433,7 @@ int zpm_extract(struct zpm *pkg, char *hash, char *path, mode_t mode) { } } + free(tmpfile); return rc; }