From ee4341de514d33c1b622939597308042219caae1 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 18 May 2017 18:48:39 +0100 Subject: Fix a memory-management goof. That's what I get for actually trying to free my memory :-) --- makecab.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/makecab.c b/makecab.c index ec4ba05..6c93a22 100644 --- a/makecab.c +++ b/makecab.c @@ -8,7 +8,7 @@ #include "uchars.h" typedef struct CabCreateContext { - char *outfile; + char *outfile; /* aliases one of args[] */ char **args; int nargs, argsize; @@ -67,7 +67,6 @@ void CreateCabCancel(CabCreateContext *ctx) for (int i = 0; i < ctx->nargs; i++) sfree(ctx->args[i]); sfree(ctx->args); - sfree(ctx->outfile); sfree(ctx); } -- cgit v1.2.3-55-g6feb