mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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:
1 parent
c827d7f39f
commit
c1f3f1748d
1 file changed
+2
-1
@@ -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;
|
||||
|
||||