aboutsummaryrefslogtreecommitdiffstats
path: root/tools/ocaml/libs/xc/xenctrl_stubs.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ocaml/libs/xc/xenctrl_stubs.c')
-rw-r--r--tools/ocaml/libs/xc/xenctrl_stubs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/ocaml/libs/xc/xenctrl_stubs.c b/tools/ocaml/libs/xc/xenctrl_stubs.c
index df756ad539..f5cf0edb24 100644
--- a/tools/ocaml/libs/xc/xenctrl_stubs.c
+++ b/tools/ocaml/libs/xc/xenctrl_stubs.c
@@ -461,8 +461,6 @@ CAMLprim value stub_xc_vcpu_getaffinity(value xch, value domid,
retval = xc_vcpu_getaffinity(_H(xch), _D(domid),
Int_val(vcpu), c_cpumap);
- free(c_cpumap);
-
if (retval < 0) {
free(c_cpumap);
failwith_xc(_H(xch));