diff options
author | Simon Tatham <anakin@pobox.com> | 2017-05-18 18:48:39 +0100 |
---|---|---|
committer | Simon Tatham <anakin@pobox.com> | 2017-05-18 18:48:39 +0100 |
commit | ee4341de514d33c1b622939597308042219caae1 (patch) | |
tree | 1fa42e23940659f4a029fe5f34520d212036b65a | |
parent | 4b5efa150a93c141640e38659e8210182279834e (diff) | |
download | wix-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -8,7 +8,7 @@ | |||
8 | #include "uchars.h" | 8 | #include "uchars.h" |
9 | 9 | ||
10 | typedef struct CabCreateContext { | 10 | typedef 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 | ||