mirror of
https://github.com/Shopify/liquid.git
synced 2026-10-02 16:45:12 -07:00
Avoid freeing of uninitialized memory.
Thanks to Isha for pointing this out.
This commit is contained in:
@@ -5,7 +5,7 @@ extern VALUE mLiquid;
|
|||||||
|
|
||||||
static void free_tokenizer(void *ptr)
|
static void free_tokenizer(void *ptr)
|
||||||
{
|
{
|
||||||
struct liquid_tokenizer *tokenizer;
|
struct liquid_tokenizer *tokenizer = ptr;
|
||||||
xfree(tokenizer);
|
xfree(tokenizer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user