mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-23 12:08:10 +00:00
[common] fix stringlist const free bug
This commit is contained in:
parent
cc6dd58778
commit
d9b6d115d1
2 changed files with 5 additions and 4 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
a12-189-g0ba931cbed+1
|
a12-190-gcc6dd58778+1
|
|
@ -33,9 +33,10 @@ StringList stringlist_new(bool owns_strings)
|
||||||
{
|
{
|
||||||
StringList sl = malloc(sizeof(struct StringList));
|
StringList sl = malloc(sizeof(struct StringList));
|
||||||
|
|
||||||
sl->size = 32;
|
sl->owns_strings = owns_strings;
|
||||||
sl->count = 0;
|
sl->size = 32;
|
||||||
sl->list = malloc(sizeof(char *) * sl->size);
|
sl->count = 0;
|
||||||
|
sl->list = malloc(sizeof(char *) * sl->size);
|
||||||
|
|
||||||
return sl;
|
return sl;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue