running qemu with valgrind I found few small memory leaks, this patch
fixes them.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
#ifdef CONFIG_STUBDOM
xenfb_pv_display_vram(vram);
#endif
+ free(pfn_list);
}
/* when used on xen environment, the vga_ram_base is not used */
act = xs_read(xsh, XBT_NULL, cmd_path, &len);
if (!act) {
fprintf(logfile, "Log-dirty: no command yet.\n");
- return;
+ goto out;
}
fprintf(logfile, "Log-dirty command %s\n", act);
/* Ack that we've service the command */
xs_write(xsh, XBT_NULL, ret_path, act, len);
+
free(act);
+out:
+ free(ret_path);
+ free(cmd_path);
}