summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2013-09-30 23:59:26 +0100
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2013-09-30 23:59:26 +0100
commitba34b34ebcbeb2062486bee26bc015bda1d02c7c (patch)
treeb0091be07ccdcd0b4019a17280620ad0eb66ea63
parente26661245f2c9ff1bfcc8d3862ab2c1c56543717 (diff)
downloadluxio-ba34b34ebcbeb2062486bee26bc015bda1d02c7c.tar.bz2
Fix double free bug
-rw-r--r--luxio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/luxio.c b/luxio.c
index 5be8e23..61ac0d6 100644
--- a/luxio.c
+++ b/luxio.c
@@ -3046,6 +3046,7 @@ static int
luxio_closelog(lua_State *L)
{
free(luxio_openlog_ident);
+ luxio_openlog_ident = NULL;
closelog();
return 0;