diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-04-11 12:24:56 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-04-11 12:24:56 (GMT) |
commit | 8ef9431730c489dcfd10edb052b4c2efbe34c921 (patch) | |
tree | d08f850b69a29fe4a19c383a222e87944a5f1d44 /src/common | |
parent | 30009c26869094699c93ff5d922405e3a13fd26f (diff) |
Created definitions for memory and encapsulated contents.
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; |