diff options
-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; } } |