From: Shawn Landden Date: Sun, 1 Dec 2013 04:02:27 +0000 (-0800) Subject: fix regression of read_full_file() in fileio.c X-Git-Tag: v209~1169 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=d78a28e3d7c8736d9addc2e45762d0f511ebbcdb fix regression of read_full_file() in fileio.c my e93c33d4aa broke this stupidly --- diff --git a/src/shared/fileio.c b/src/shared/fileio.c index ac1b409a1..ede88196b 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;