diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/core/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/core/utils.c b/src/lib/core/utils.c index 83e684f..1fe9d1f 100644 --- a/src/lib/core/utils.c +++ b/src/lib/core/utils.c @@ -675,9 +675,9 @@ int fix_tox_conf(const char *filename, char **result, size_t maxlen) { if (!toxini) { if (fptemp) { guard_free(result); - guard_free(tempfile); fclose(fptemp); } + guard_free(tempfile); return -1; } @@ -702,6 +702,7 @@ int fix_tox_conf(const char *filename, char **result, size_t maxlen) { SYSERROR("failed to increase size to +%zu bytes", strlen(value) + strlen(with_posargs) + 1); guard_free(*result); + guard_free(tempfile); return -1; } value = tmp; |
