[common] fix stringlist const free bug
This commit is contained in:
1 parent
cc6dd58778
commit
d9b6d115d1
2 files changed
+5
-4
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user