mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-19 10:42:36 +03:00
Fix memory leak in error handling
error handling during form gadget construction could leak, this fixes the leak on error. Fixes coverity CID 1109875
This commit is contained in:
parent
fdbb413403
commit
c53be10892
@ -2654,6 +2654,7 @@ bool box_select(BOX_SPECIAL_PARAMS)
|
|||||||
if (err != DOM_NO_ERR) {
|
if (err != DOM_NO_ERR) {
|
||||||
dom_node_unref(c2);
|
dom_node_unref(c2);
|
||||||
dom_node_unref(c);
|
dom_node_unref(c);
|
||||||
|
form_free_control(gadget);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user