From 03e4057a70435a1401ccb9d44447c547f7c6f135 Mon Sep 17 00:00:00 2001 From: Angel Ortega Date: Tue, 30 Nov 2010 16:22:17 +0100 Subject: [PATCH] Fixed occasional crash in stress. --- stress.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stress.c b/stress.c index e58432f..31842d7 100644 --- a/stress.c +++ b/stress.c @@ -416,8 +416,10 @@ void test_hash(void) v = MPDM_H(0); mpdm_hset(h, v, MPDM_I(9876)); v = MPDM_A(0); + mpdm_ref(v); mpdm_hset(h, v, MPDM_I(6543)); i = mpdm_ival(mpdm_hget(h, v)); + mpdm_unref(v); mpdm_dump(h); do_test("hash: using non-strings as hash keys", (i == 6543)); -- 2.11.4.GIT