mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-03-05 14:51:47 +03:00
release gadget allocation on error path (Coverity 1109875)
This commit is contained in:
parent
1c735140b6
commit
ca74e0060d
@ -2608,6 +2608,7 @@ bool box_select(BOX_SPECIAL_PARAMS)
|
||||
err = dom_node_get_first_child(c, &c2);
|
||||
if (err != DOM_NO_ERR) {
|
||||
dom_node_unref(c);
|
||||
form_free_control(gadget);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user