projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc5c2d5
)
libxl: ocaml: in send_debug_keys, clean up before raising exception
author
Rob Hoes
<rob.hoes@citrix.com>
Wed, 6 Nov 2013 17:50:02 +0000
(17:50 +0000)
committer
Ian Campbell
<ian.campbell@citrix.com>
Mon, 11 Nov 2013 15:39:47 +0000
(15:39 +0000)
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Acked-by: David Scott <dave.scott@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/ocaml/libs/xl/xenlight_stubs.c
patch
|
blob
|
history
diff --git
a/tools/ocaml/libs/xl/xenlight_stubs.c
b/tools/ocaml/libs/xl/xenlight_stubs.c
index be8a3e8671cc2b75b150d73ab0128af1db6d4b81..80a59864f00180ce29db839962be908fbd95c085 100644
(file)
--- a/
tools/ocaml/libs/xl/xenlight_stubs.c
+++ b/
tools/ocaml/libs/xl/xenlight_stubs.c
@@
-695,11
+695,11
@@
value stub_xl_send_debug_keys(value ctx, value keys)
c_keys = dup_String_val(keys);
ret = libxl_send_debug_keys(CTX, c_keys);
+ free(c_keys);
+
if (ret != 0)
failwith_xl(ret, "send_debug_keys");
- free(c_keys);
-
CAMLreturn(Val_unit);
}