aboutsummaryrefslogtreecommitdiff
path: root/src/download.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/download.c')
-rw-r--r--src/download.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/download.c b/src/download.c
index fb5746d..0554ee5 100644
--- a/src/download.c
+++ b/src/download.c
@@ -61,6 +61,8 @@ int pow_download_source(pow_package_source *src, const char *prefix) {
if (pow_download_file(full_path, src->in)) {
printf("failed to download sources, aborting\n");
+ free(full_path);
+
return 1;
}
@@ -68,10 +70,14 @@ int pow_download_source(pow_package_source *src, const char *prefix) {
printf("hash mismatch. something is going wrong with downloading the file "
"or it may be tampered with.\n");
+ free(full_path);
+
return 1;
}
printf("hash verification succeeded, going through.");
+ free(full_path);
+
return 0;
}