diff options
Diffstat (limited to 'extras')
-rw-r--r-- | extras/mini-os/lib/xs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extras/mini-os/lib/xs.c b/extras/mini-os/lib/xs.c index b654b0ee5d..6eced70347 100644 --- a/extras/mini-os/lib/xs.c +++ b/extras/mini-os/lib/xs.c @@ -49,6 +49,7 @@ void *xs_read(struct xs_handle *h, xs_transaction_t t, msg = xenbus_read(t, path, &value); if (msg) { printk("xs_read(%s): %s\n", path, msg); + free(msg); return NULL; } @@ -69,6 +70,7 @@ bool xs_write(struct xs_handle *h, xs_transaction_t t, msg = xenbus_write(t, path, value); if (msg) { printk("xs_write(%s): %s\n", path, msg); + free(msg); return false; } return true; |