diff options
author | Matthew Daley <mattjd@gmail.com> | 2013-09-29 18:24:36 +1300 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-10-03 14:07:30 +0100 |
commit | c1f3f1748daec78533911035d0aaa07666bf8ea8 (patch) | |
tree | 3e46529a0760cc8d0792a3fe3e1f603100f81aa4 /tools | |
parent | c827d7f39f7a184ed73e435237bbba54d4272bc1 (diff) | |
download | xen-c1f3f1748daec78533911035d0aaa07666bf8ea8.tar.gz xen-c1f3f1748daec78533911035d0aaa07666bf8ea8.tar.bz2 xen-c1f3f1748daec78533911035d0aaa07666bf8ea8.zip |
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>
Diffstat (limited to 'tools')
-rw-r--r-- | 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 e42b371765..6f033dd4b3 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; |