Memory leak in error case. CID 807.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25645 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1950,8 +1950,10 @@ BMessage::_SendMessage(port_id port, team_id portOwner, int32 token,
|
|||||||
if (target < 0) {
|
if (target < 0) {
|
||||||
port_info info;
|
port_info info;
|
||||||
result = get_port_info(port, &info);
|
result = get_port_info(port, &info);
|
||||||
if (result < B_OK)
|
if (result < B_OK) {
|
||||||
|
free(header);
|
||||||
return result;
|
return result;
|
||||||
|
}
|
||||||
target = info.team;
|
target = info.team;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user