diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/io.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/io.c b/src/common/io.c index 85be44c..457e3c5 100644 --- a/src/common/io.c +++ b/src/common/io.c @@ -363,7 +363,10 @@ int make_tmp_file(const char *base, char **filename) } if (result == -1) + { free(*filename); + *filename = NULL; + } return result; |