summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libalpm/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
index cf783893..98eaa175 100644
--- a/lib/libalpm/util.c
+++ b/lib/libalpm/util.c
@@ -836,6 +836,7 @@ char SYMEXPORT *alpm_compute_md5sum(const char *filename)
ret = md5_file(filename, output);
if(ret > 0) {
+ free(md5sum);
return NULL;
}
@@ -867,6 +868,7 @@ char SYMEXPORT *alpm_compute_sha256sum(const char *filename)
ret = sha2_file(filename, output, 0);
if(ret > 0) {
+ free(sha256sum);
return NULL;
}