From 6ebee56297dfd9c380f8f8fb6c0b8bb5254901b7 Mon Sep 17 00:00:00 2001 From: Jake Douglas Date: Tue, 27 Jul 2010 02:11:58 +0800 Subject: Zero out the generator struct to avoid GC problems --- ext/json/ext/generator/generator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/json/ext/generator/generator.c b/ext/json/ext/generator/generator.c index ac4f5c4..fc33da5 100644 --- a/ext/json/ext/generator/generator.c +++ b/ext/json/ext/generator/generator.c @@ -616,6 +616,7 @@ static void State_free(JSON_Generator_State *state) static JSON_Generator_State *State_allocate() { JSON_Generator_State *state = ALLOC(JSON_Generator_State); + MEMZERO(state, JSON_Generator_State, 1); return state; } -- cgit v1.2.1