mirror of
https://github.com/phpv8/v8js.git
synced 2025-01-03 08:11:52 +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);
|
v8js_free_ext_strarr(jsext->deps, jsext->deps_count);
|
||||||
}
|
}
|
||||||
delete jsext->extension;
|
delete jsext->extension;
|
||||||
|
|
||||||
// Free the persisted non-interned strings we allocated.
|
// Free the persisted non-interned strings we allocated.
|
||||||
|
if (jsext->name) {
|
||||||
zend_string_release(jsext->name);
|
zend_string_release(jsext->name);
|
||||||
|
}
|
||||||
|
if (jsext->source) {
|
||||||
zend_string_release(jsext->source);
|
zend_string_release(jsext->source);
|
||||||
|
}
|
||||||
|
|
||||||
free(jsext);
|
free(jsext);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user