diff options
Diffstat (limited to 'test/css21.c')
-rw-r--r-- | test/css21.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/css21.c b/test/css21.c index ddc629c..7a2997a 100644 --- a/test/css21.c +++ b/test/css21.c @@ -115,7 +115,7 @@ int main(int argc, char **argv) if (error == CSS_OK) { css_stylesheet *import; - char *buf = alloca(lwc_string_length(url) + 1); + char *buf = malloc(lwc_string_length(url) + 1); memcpy(buf, lwc_string_data(url), lwc_string_length(url)); @@ -135,6 +135,8 @@ int main(int argc, char **argv) css_stylesheet_destroy(import); error = CSS_IMPORTS_PENDING; + + free(buf); } } |