libxl: only put poller if already gotten in libxl_event_wait

Coverity-ID: 1055292
Signed-off-by: Matthew Daley <mattjd@gmail.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
Matthew Daley authored and Ian Campbell committed 2013-10-03 14:07:30 +01:00
1 parent c827d7f39f
commit c1f3f1748d
1 file changed
+2 -1
+2 -1
View File
@@ -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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.