Skip to content

Commit 827cfef

Browse files
committed
Merge branch 'pull-request/58' into php7
* pull-request/58: Fix memory leak in handle_mapping()
2 parents 884d19f + 4c26bec commit 827cfef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

parse.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ void handle_mapping(parser_state_t *state, zval *retval)
403403
if (Z_TYPE(value) == IS_UNDEF) {
404404
yaml_event_delete(&src_event);
405405
yaml_event_delete(&key_event);
406+
zval_ptr_dtor(&key);
406407
return;
407408
}
408409

0 commit comments

Comments
 (0)