Fix memory leak when export hook is not connected.

This commit is contained in:
Alexander Motin 2008-01-27 09:22:10 +00:00
parent f704a24b20
commit cfcb2a4c82

View File

@ -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);
}