[wing] wingservice: fix possible mem leak



commit b5265368f986b0e6d02eb5a2c922a690cd8e5da2
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date:   Tue Dec 17 11:40:28 2019 +0100

    wingservice: fix possible mem leak

 wing/wingservice.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/wing/wingservice.c b/wing/wingservice.c
index 527c515..bcc389c 100644
--- a/wing/wingservice.c
+++ b/wing/wingservice.c
@@ -589,6 +589,8 @@ control_handler (DWORD  control,
       set_service_status (service, SERVICE_RUNNING);
       break;
     case SERVICE_CONTROL_INTERROGATE:
+      /* We do nothing with the data so just free it */
+      g_slice_free (IdleEventData, data);
       break;
     case SERVICE_CONTROL_SHUTDOWN:
       /* do not waste time informing the SCM about the state just do it */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]