Introduces outbuf_free() to mirror the currently existing outbuf_init().
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
return 0;
}
+static int outbuf_free(struct outbuf *ob)
+{
+ free(ob->buf);
+ ob->buf = NULL;
+ return 0;
+}
+
static inline int outbuf_write(xc_interface *xch,
struct outbuf* ob, void* buf, size_t len)
{
free(pfn_batch);
free(pfn_err);
free(to_fix);
+ free(hvm_buf);
+ outbuf_free(&ob_pagebuf);
DPRINTF("Save exit of domid %u with rc=%d\n", dom, rc);