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:
parent
b8db3933b1
commit
d4c02c0171
@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
#include <BeOSBuildCompatibility.h>
|
#include <BeOSBuildCompatibility.h>
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <OS.h>
|
#include <OS.h>
|
||||||
@ -56,6 +57,8 @@ delete_sem(sem_id id)
|
|||||||
return B_BAD_SEM_ID;
|
return B_BAD_SEM_ID;
|
||||||
|
|
||||||
sSemaphores[id].inUse = false;
|
sSemaphores[id].inUse = false;
|
||||||
|
free(sSemaphores[id].name);
|
||||||
|
sSemaphores[id].name = NULL;
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user