From d9b6d115d1eeafb4186cec91e70c832b507f8963 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 21 May 2019 11:30:05 +1000 Subject: [PATCH] [common] fix stringlist const free bug --- VERSION | 2 +- common/src/stringlist.c | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 9285b0db..7d3b3ee0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -a12-189-g0ba931cbed+1 \ No newline at end of file +a12-190-gcc6dd58778+1 \ No newline at end of file diff --git a/common/src/stringlist.c b/common/src/stringlist.c index 24bd4a50..7403ba6e 100644 --- a/common/src/stringlist.c +++ b/common/src/stringlist.c @@ -33,9 +33,10 @@ StringList stringlist_new(bool owns_strings) { StringList sl = malloc(sizeof(struct StringList)); - sl->size = 32; - sl->count = 0; - sl->list = malloc(sizeof(char *) * sl->size); + sl->owns_strings = owns_strings; + sl->size = 32; + sl->count = 0; + sl->list = malloc(sizeof(char *) * sl->size); return sl; }