]> granicus.if.org Git - pdns/commitdiff
Delete allocated semaphore
authorAki Tuomi <cmouse@desteem.org>
Tue, 29 Sep 2015 17:33:25 +0000 (20:33 +0300)
committerAki Tuomi <cmouse@desteem.org>
Sat, 3 Oct 2015 21:52:44 +0000 (00:52 +0300)
fix cid#1029923

pdns/unix_semaphore.cc

index 45e9339bfcdeab3a96d669208cd025cca6a51a46..b471dca8d090f2af58618cfdddab2e747c4cf7bf 100644 (file)
@@ -182,6 +182,7 @@ int Semaphore::getValue(Semaphore::sem_value_t *sval)
 
 Semaphore::~Semaphore()
 {
+  delete m_pSemaphore;
 }
 
 #endif