mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-22 14:01:53 +00:00
fix null-ptr deref
This commit is contained in:
parent
aa041b4597
commit
4762dd1f0a
@ -273,9 +273,14 @@ static void v8js_jsext_free_storage(v8js_jsext *jsext) /* {{{ */
|
||||
v8js_free_ext_strarr(jsext->deps, jsext->deps_count);
|
||||
}
|
||||
delete jsext->extension;
|
||||
|
||||
// Free the persisted non-interned strings we allocated.
|
||||
zend_string_release(jsext->name);
|
||||
zend_string_release(jsext->source);
|
||||
if (jsext->name) {
|
||||
zend_string_release(jsext->name);
|
||||
}
|
||||
if (jsext->source) {
|
||||
zend_string_release(jsext->source);
|
||||
}
|
||||
|
||||
free(jsext);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user