aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2020-04-26 15:30:08 -0400
committerJason Woodward2020-04-26 15:30:08 -0400
commit8b39a03671bc35277f68ac07961b8d946c2ea69f (patch)
tree810e2af09bed83bcd7a4d84f5e2329ac7ad68a1e
parent6020cb04ddc3fb6a9fa03f1716dfe1ab726f5370 (diff)
downloadslapt-src-8b39a03671bc35277f68ac07961b8d946c2ea69f.tar.gz
fixups for recent slapt-get changes0.3.4
-rw-r--r--src/main.c1
-rw-r--r--src/source.c5
2 files changed, 5 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 0aa67c1..b867658 100644
--- a/src/main.c
+++ b/src/main.c
@@ -600,6 +600,7 @@ static void clean(slapt_src_config *config)
if (sys_r != 0)
exit(EXIT_FAILURE);
}
+ free(command);
}
}
closedir(builddir);
diff --git a/src/source.c b/src/source.c
index 82422ce..4a093db 100644
--- a/src/source.c
+++ b/src/source.c
@@ -210,6 +210,9 @@ bool slapt_src_update_slackbuild_cache(slapt_src_config *config)
if (head != NULL)
slapt_write_head_cache(head, filename);
+ free(head);
+ free(local_head);
+ free(filename);
break;
} else {
@@ -553,7 +556,7 @@ bool slapt_src_fetch_slackbuild(slapt_src_config *config, slapt_src_slackbuild *
char *md5sum = md5sum_parts->items[i];
char *filename = filename_from_url(download_parts->items[i]);
FILE *f = NULL;
- char md5sum_to_prove[SLAPT_MD5_STR_LEN];
+ char md5sum_to_prove[SLAPT_MD5_STR_LEN + 1];
struct stat file_stat;
size_t file_size = 0;