From b0ac8a02e6c0c78b275f85697bd1da5be3b57876 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Tue, 14 Feb 2017 11:36:57 +0100 Subject: [PATCH] Fix bug in mustach.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I353ae1cc33795ba8ffd98fcec503125ec9d455a3 Signed-off-by: José Bollo --- src/mustach.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mustach.c b/src/mustach.c index 19df16f..5bf9f56 100644 --- a/src/mustach.c +++ b/src/mustach.c @@ -47,7 +47,7 @@ static int getpartial(struct mustach_itf *itf, void *closure, const char *name, rc = fputc(0, file) ? MUSTACH_ERROR_SYSTEM : 0; fclose(file); if (rc < 0) { - free(result); + free(*result); *result = NULL; } } -- 2.16.6