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

[Xen-changelog] [xen master] libxl: only put poller if already gotten in libxl_event_wait



commit c1f3f1748daec78533911035d0aaa07666bf8ea8
Author:     Matthew Daley <mattjd@xxxxxxxxx>
AuthorDate: Sun Sep 29 18:24:36 2013 +1300
Commit:     Ian Campbell <ian.campbell@xxxxxxxxxx>
CommitDate: Thu Oct 3 14:07:30 2013 +0100

    libxl: only put poller if already gotten in libxl_event_wait
    
    Coverity-ID: 1055292
    Signed-off-by: Matthew Daley <mattjd@xxxxxxxxx>
    Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
 tools/libxl/libxl_event.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tools/libxl/libxl_event.c b/tools/libxl/libxl_event.c
index e42b371..6f033dd 100644
--- a/tools/libxl/libxl_event.c
+++ b/tools/libxl/libxl_event.c
@@ -1476,7 +1476,8 @@ int libxl_event_wait(libxl_ctx *ctx, libxl_event 
**event_r,
     }
 
  out:
-    libxl__poller_put(ctx, poller);
+    if (poller)
+        libxl__poller_put(ctx, poller);
 
     CTX_UNLOCK;
     EGC_FREE;
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.