From d4f18457a4bcdf321b6f97394c3a7c26dd2225e7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 14 May 2014 06:41:32 +0200 Subject: fix dumb-client and memory errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libmdsserver/mds-message.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libmdsserver/mds-message.c') diff --git a/src/libmdsserver/mds-message.c b/src/libmdsserver/mds-message.c index b324ad4..d65ac6b 100644 --- a/src/libmdsserver/mds-message.c +++ b/src/libmdsserver/mds-message.c @@ -94,6 +94,7 @@ int mds_message_read(mds_message_t* restrict this, int fd) { size_t i; xfree(this->headers, this->header_count); + this->headers = NULL; } this->header_count = 0; -- cgit v1.2.3-70-g09d2