summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-04-11 12:24:56 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-04-11 12:24:56 (GMT)
commit8ef9431730c489dcfd10edb052b4c2efbe34c921 (patch)
treed08f850b69a29fe4a19c383a222e87944a5f1d44 /src/common
parent30009c26869094699c93ff5d922405e3a13fd26f (diff)
Created definitions for memory and encapsulated contents.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/io.c3
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;