Created
July 26, 2010 18:13
-
-
Save jakedouglas/490955 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 47aed113b4a3059bd98d25bd28f01402895df5ff Mon Sep 17 00:00:00 2001 | |
From: Jake Douglas <jakecdouglas@gmail.com> | |
Date: Mon, 26 Jul 2010 11:11:58 -0700 | |
Subject: [PATCH] Zero out the generator struct to avoid GC problems | |
--- | |
ext/json/ext/generator/generator.c | 1 + | |
1 files changed, 1 insertions(+), 0 deletions(-) | |
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; | |
} | |
-- | |
1.6.4.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment