From 3cd10fd21220f2b814324e6e732004f8f0487d0a Mon Sep 17 00:00:00 2001 From: Matthew Daley Date: Tue, 10 Sep 2013 23:12:45 +1200 Subject: tools/ocaml: fix erroneous free of cpumap in stub_xc_vcpu_getaffinity Not sure how it got there... Coverity-ID: 1056196 This is CVE-2013-4370 / XSA-69 Signed-off-by: Matthew Daley Acked-by: Ian Campbell --- tools/ocaml/libs/xc/xenctrl_stubs.c | 2 -- 1 file changed, 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)); -- cgit v1.2.3