Skip to content

Commit

Permalink
fixed mem leak in get_param
Browse files Browse the repository at this point in the history
  • Loading branch information
bef committed Aug 3, 2021
1 parent 1eb78b0 commit ef7072a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sp_config_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ zend_string *get_param(size_t *consumed, char *restrict line, sp_type type,
original_line ? original_line : "NULL", sp_line_no);
}
line = NULL;
if (ret) {
zend_string_release(ret);
}
return NULL;
}

Expand Down

0 comments on commit ef7072a

Please sign in to comment.