aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/unit1305.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/unit1305.c')
-rw-r--r--tests/unit/unit1305.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unit/unit1305.c b/tests/unit/unit1305.c
index 93815e5f8..4f9c609b0 100644
--- a/tests/unit/unit1305.c
+++ b/tests/unit/unit1305.c
@@ -128,6 +128,7 @@ UNITTEST_START
abort_unless(rc == CURLE_OK, "data node creation failed");
key_len = strlen(data_key);
+ data_node->inuse = 1; /* hash will hold the reference */
nodep = Curl_hash_add(hp, data_key, key_len+1, data_node);
abort_unless(nodep, "insertion into hash failed");
/* Freeing will now be done by Curl_hash_destroy */