From 1be5ab8e029af60d1512906e1ebcb7f98ab61ec8 Mon Sep 17 00:00:00 2001 From: onefang Date: Fri, 8 Oct 2021 07:27:01 +1000 Subject: Fix a double free. --- src/sledjchisl/sledjchisl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index beda3cf..d4320fb 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c @@ -2492,6 +2492,7 @@ void ungitar(simData *simd, char *sim, int count, int window, int panes, int pan for (b = 0; b < 2; b++) { char *gar = xmprintf("%s%cgit%cAR", name, bar[b], type), *gtr = xmprintf("%s/%s.tar.xz", scBackup, gar); + char *prev = xmprintf(""); if (qfile_exist(dir)) { @@ -2526,7 +2527,6 @@ void ungitar(simData *simd, char *sim, int count, int window, int panes, int pan // Loop backwards through the commits, saving them as ordinary OAR files. // The backup script should put only the file name in the commit message. char *cmd = xmprintf("cd %s/%s; git shortlog | tail -n 2 | head -n 1 | cut -c 7- ", dir, gar); - char *prev = xmprintf(""); while (true) { -- cgit v1.1