Remove unneeded NULL check. At first msg can't be null here and and at second
NG_FREE_MSG() also checks it. Found with: Coverity Prevent(tm)
This commit is contained in:
parent
f4088192d4
commit
9bd352d6fd
@ -2853,8 +2853,7 @@ ng_generic_msg(node_p here, item_p item, hook_p lasthook)
|
||||
*/
|
||||
out:
|
||||
NG_RESPOND_MSG(error, here, item, resp);
|
||||
if (msg)
|
||||
NG_FREE_MSG(msg);
|
||||
NG_FREE_MSG(msg);
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user