aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2021-10-08 07:27:01 +1000
committeronefang2021-10-08 07:27:01 +1000
commit1be5ab8e029af60d1512906e1ebcb7f98ab61ec8 (patch)
tree323f0a4a75849e380f1ea7d791ba623f5f9ca9de
parentTweak the "Invalid referer" message. (diff)
downloadopensim-SC-1be5ab8e029af60d1512906e1ebcb7f98ab61ec8.zip
opensim-SC-1be5ab8e029af60d1512906e1ebcb7f98ab61ec8.tar.gz
opensim-SC-1be5ab8e029af60d1512906e1ebcb7f98ab61ec8.tar.bz2
opensim-SC-1be5ab8e029af60d1512906e1ebcb7f98ab61ec8.tar.xz
Fix a double free.
-rw-r--r--src/sledjchisl/sledjchisl.c2
1 files changed, 1 insertions, 1 deletions
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
2492 for (b = 0; b < 2; b++) 2492 for (b = 0; b < 2; b++)
2493 { 2493 {
2494 char *gar = xmprintf("%s%cgit%cAR", name, bar[b], type), *gtr = xmprintf("%s/%s.tar.xz", scBackup, gar); 2494 char *gar = xmprintf("%s%cgit%cAR", name, bar[b], type), *gtr = xmprintf("%s/%s.tar.xz", scBackup, gar);
2495 char *prev = xmprintf("");
2495 2496
2496 if (qfile_exist(dir)) 2497 if (qfile_exist(dir))
2497 { 2498 {
@@ -2526,7 +2527,6 @@ void ungitar(simData *simd, char *sim, int count, int window, int panes, int pan
2526 // Loop backwards through the commits, saving them as ordinary OAR files. 2527 // Loop backwards through the commits, saving them as ordinary OAR files.
2527 // The backup script should put only the file name in the commit message. 2528 // The backup script should put only the file name in the commit message.
2528 char *cmd = xmprintf("cd %s/%s; git shortlog | tail -n 2 | head -n 1 | cut -c 7- ", dir, gar); 2529 char *cmd = xmprintf("cd %s/%s; git shortlog | tail -n 2 | head -n 1 | cut -c 7- ", dir, gar);
2529 char *prev = xmprintf("");
2530 2530
2531 while (true) 2531 while (true)
2532 { 2532 {