From: Aki Tuomi Date: Tue, 29 Sep 2015 17:33:25 +0000 (+0300) Subject: Delete allocated semaphore X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~12^2~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=507039d0569646de950ca3c9523c60be34f9aec7;p=pdns Delete allocated semaphore fix cid#1029923 --- diff --git a/pdns/unix_semaphore.cc b/pdns/unix_semaphore.cc index 45e9339bf..b471dca8d 100644 --- a/pdns/unix_semaphore.cc +++ b/pdns/unix_semaphore.cc @@ -182,6 +182,7 @@ int Semaphore::getValue(Semaphore::sem_value_t *sval) Semaphore::~Semaphore() { + delete m_pSemaphore; } #endif