tempName was leaked in case team was NULL. CID 1702

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37970 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2010-08-08 12:11:46 +00:00
parent e36d4dad06
commit 5e2ed2f356
+1
View File
@@ -506,6 +506,7 @@ create_sem_etc(int32 count, const char* name, team_id owner)
if (team == NULL) {
RELEASE_TEAM_LOCK();
restore_interrupts(state);
free(tempName);
return B_BAD_TEAM_ID;
}