Avoid freeing of uninitialized memory.

Thanks to Isha for pointing this out.
This commit is contained in:
Dylan Thacker-Smith
2014-02-27 18:29:07 -05:00
parent dab6bdfdee
commit d4aabda625

View File

@@ -5,7 +5,7 @@ extern VALUE mLiquid;
static void free_tokenizer(void *ptr)
{
struct liquid_tokenizer *tokenizer;
struct liquid_tokenizer *tokenizer = ptr;
xfree(tokenizer);
}