]> granicus.if.org Git - icinga2/commitdiff
Fix leak in SocketEvents::Threadproc
authorGunnar Beutner <gunnar@beutner.name>
Mon, 2 Mar 2015 08:51:24 +0000 (09:51 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Mon, 2 Mar 2015 09:14:14 +0000 (10:14 +0100)
Coverity Bug ID: 1272338

lib/base/socketevents.cpp

index 14be45ccaf055df99b138455f2247680f7275929..045563ba2e564c5493d7e11221650ab2dc90b9a8 100644 (file)
@@ -108,6 +108,7 @@ void SocketEvents::ThreadProc(void)
                        if (l_SocketIOFDChanged) {
                                l_SocketIOFDChanged = false;
                                l_SocketIOCV.notify_all();
+                               delete [] pfds;
                                continue;
                        }
                }