Fix memory leak when export hook is not connected.
This commit is contained in:
parent
f704a24b20
commit
cfcb2a4c82
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=175718
@ -617,6 +617,8 @@ export_send(priv_p priv, item_p item, int flags)
|
||||
|
||||
if (priv->export != NULL)
|
||||
NG_FWD_ITEM_HOOK_FLAGS(error, item, priv->export, flags);
|
||||
else
|
||||
NG_FREE_ITEM(item);
|
||||
|
||||
return (error);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user