From c426655c44d57d6c54aec42c43fd8a1b48400be3 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 2 Mar 2015 13:23:26 +0100 Subject: [PATCH] Remove redundant checks in check_service --- plugins/check_service.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/check_service.cpp b/plugins/check_service.cpp index f6e0919fe..a58d4e79d 100644 --- a/plugins/check_service.cpp +++ b/plugins/check_service.cpp @@ -209,8 +209,7 @@ die: CloseServiceHandle(hSCM); if (hService) CloseServiceHandle(hService); - if (lpBuf) - delete[] lpBuf; + delete [] lpBuf; return -1; }