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

[libvirt] [PATCH 03/14] virnetserver: Need to initialize 'sigdata'



It was possible to call VIR_FREE in error prior to initialization
---
 src/rpc/virnetserver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/rpc/virnetserver.c b/src/rpc/virnetserver.c
index cbbc986..95333d0 100644
--- a/src/rpc/virnetserver.c
+++ b/src/rpc/virnetserver.c
@@ -926,7 +926,7 @@ int virNetServerAddSignalHandler(virNetServerPtr srv,
                                  virNetServerSignalFunc func,
                                  void *opaque)
 {
-    virNetServerSignalPtr sigdata;
+    virNetServerSignalPtr sigdata = NULL;
     struct sigaction sig_action;
 
     virObjectLock(srv);
-- 
1.7.11.7


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