From d4c02c01715d5c571b1169a929db070fa06fda16 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 2 May 2007 16:50:25 +0000 Subject: [PATCH] Memory leak spotted by Axel. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20979 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/build/libroot/sem.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/build/libroot/sem.cpp b/src/build/libroot/sem.cpp index 9935724f8d..22c6725f50 100644 --- a/src/build/libroot/sem.cpp +++ b/src/build/libroot/sem.cpp @@ -1,6 +1,7 @@ #include +#include #include #include @@ -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; }