summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLloyd Hilaiel <lloyd@hilaiel.com>2009-05-17 11:56:43 -0600
committerLloyd Hilaiel <lloyd@hilaiel.com>2009-05-17 11:56:43 -0600
commit75cd82ec8f963b65b92a1a8bcd668b5bed692b51 (patch)
treecf21b2e7b6942080fe8ba448cbf487d8ebba0091 /test
parent57bac17eb1f7c2c832496911715c4cc498b539a1 (diff)
downloadyajl-75cd82ec8f963b65b92a1a8bcd668b5bed692b51.tar.gz
fix realloc bug in yajl test case runner
Diffstat (limited to 'test')
-rw-r--r--test/yajl_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/yajl_test.c b/test/yajl_test.c
index 3554f1b..f2c070f 100644
--- a/test/yajl_test.c
+++ b/test/yajl_test.c
@@ -74,7 +74,7 @@ static void * yajlTestRealloc(void * ctx, void * ptr, unsigned int sz)
TEST_CTX(ctx)->numFrees++;
}
- return realloc(ctx, sz);
+ return realloc(ptr, sz);
}