diff options
-rw-r--r-- | src/shared/fileio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/fileio.c b/src/shared/fileio.c index ac1b409a1c..ede88196b5 100644 --- a/src/shared/fileio.c +++ b/src/shared/fileio.c @@ -240,6 +240,7 @@ int read_full_file(const char *fn, char **contents, size_t *size) { buf[l] = 0; *contents = buf; + buf = NULL; /* do not free */ if (size) *size = l; |