diff --git a/src/xenconfig/xen_xl.c b/src/xenconfig/xen_xl.c index 532d6677b42efca3e5d214b52d6b098ddbddc2ec..2ef80eb83a410153ff69eca75e18f63003220722 100644 --- a/src/xenconfig/xen_xl.c +++ b/src/xenconfig/xen_xl.c @@ -436,9 +436,11 @@ xenParseXLVnuma(virConfPtr conf, goto cleanup; } + VIR_FREE(tmp); if (VIR_STRDUP(tmp, vtoken) < 0) goto cleanup; + virStringListFree(token); if (!(token = virStringSplitCount(tmp, ",", 0, &ndistances))) goto cleanup;