Memory leak spotted by Axel.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20979 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2007-05-02 16:50:25 +00:00
parent b8db3933b1
commit d4c02c0171

View File

@ -1,6 +1,7 @@
#include <BeOSBuildCompatibility.h>
#include <stdlib.h>
#include <string.h>
#include <OS.h>
@ -56,6 +57,8 @@ delete_sem(sem_id id)
return B_BAD_SEM_ID;
sSemaphores[id].inUse = false;
free(sSemaphores[id].name);
sSemaphores[id].name = NULL;
return B_OK;
}