Skip to content

Commit

Permalink
Fix leak of ObjectIdDict keys
Browse files Browse the repository at this point in the history
Replace dead keys with jl_nothing. Fix #10960.
  • Loading branch information
carnaval committed Jun 5, 2015
1 parent 3ff49ff commit 6b94780
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/table.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ jl_value_t *jl_eqtable_pop(jl_array_t *h, void *key, jl_value_t *deflt)
if (bp == NULL || *bp == NULL)
return deflt;
jl_value_t *val = (jl_value_t*)*bp;
*(bp-1) = jl_nothing; // clear the key
*bp = NULL;
return val;
}
Expand Down

0 comments on commit 6b94780

Please sign in to comment.