diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-02-14 11:36:57 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-02-14 11:38:10 +0100 |
commit | b0ac8a02e6c0c78b275f85697bd1da5be3b57876 (patch) | |
tree | 5081cf13a143b3956dd5feee688b008b2e3bba3a | |
parent | 909c2221ef664c247832bebc7e9dfd7c38bae6c7 (diff) |
Fix bug in mustach.c
Change-Id: I353ae1cc33795ba8ffd98fcec503125ec9d455a3
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | src/mustach.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |