From 9a32c08cff708ef4c14f02c9c4624da6cb7ae6ff Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 23 Feb 2016 16:06:11 +0100 Subject: [PATCH] Complete log buffer patch set --- src/modules/sdlog2/logbuffer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/sdlog2/logbuffer.c b/src/modules/sdlog2/logbuffer.c index 02172b4154..c856aaa7d3 100644 --- a/src/modules/sdlog2/logbuffer.c +++ b/src/modules/sdlog2/logbuffer.c @@ -148,5 +148,8 @@ void logbuffer_free(struct logbuffer_s *lb) { if (lb->data) { free(lb->data); + lb->write_ptr = 0; + lb->read_ptr = 0; + lb->data = NULL; } }