aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2017-05-18 18:48:39 +0100
committerSimon Tatham <anakin@pobox.com>2017-05-18 18:48:39 +0100
commitee4341de514d33c1b622939597308042219caae1 (patch)
tree1fa42e23940659f4a029fe5f34520d212036b65a
parent4b5efa150a93c141640e38659e8210182279834e (diff)
downloadwix-on-linux-ee4341de514d33c1b622939597308042219caae1.tar.gz
wix-on-linux-ee4341de514d33c1b622939597308042219caae1.tar.bz2
wix-on-linux-ee4341de514d33c1b622939597308042219caae1.zip
Fix a memory-management goof.
That's what I get for actually trying to free my memory :-)
-rw-r--r--makecab.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/makecab.c b/makecab.c
index ec4ba05..6c93a22 100644
--- a/makecab.c
+++ b/makecab.c
@@ -8,7 +8,7 @@
8#include "uchars.h" 8#include "uchars.h"
9 9
10typedef struct CabCreateContext { 10typedef struct CabCreateContext {
11 char *outfile; 11 char *outfile; /* aliases one of args[] */
12 12
13 char **args; 13 char **args;
14 int nargs, argsize; 14 int nargs, argsize;
@@ -67,7 +67,6 @@ void CreateCabCancel(CabCreateContext *ctx)
67 for (int i = 0; i < ctx->nargs; i++) 67 for (int i = 0; i < ctx->nargs; i++)
68 sfree(ctx->args[i]); 68 sfree(ctx->args[i]);
69 sfree(ctx->args); 69 sfree(ctx->args);
70 sfree(ctx->outfile);
71 sfree(ctx); 70 sfree(ctx);
72} 71}
73 72