aboutsummaryrefslogtreecommitdiff
path: root/slirp/misc.h
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2018-11-10 17:45:44 +0400
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2019-01-14 00:40:54 +0100
commitc27f247865d7e1910136b57a5c066737ab1bf2bb (patch)
tree66b26345038eeaba0511264b4d93d2226c5315e5 /slirp/misc.h
parentb7f43bf2f6166cc6e4ee22898ae31b76503378aa (diff)
downloadqemu-c27f247865d7e1910136b57a5c066737ab1bf2bb.zip
qemu-c27f247865d7e1910136b57a5c066737ab1bf2bb.tar.gz
qemu-c27f247865d7e1910136b57a5c066737ab1bf2bb.tar.bz2
slirp: fix slirp_add_exec() leaks
Free the list elements allocated in add_exec(). Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'slirp/misc.h')
-rw-r--r--slirp/misc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/slirp/misc.h b/slirp/misc.h
index 9482972..0bc5e74 100644
--- a/slirp/misc.h
+++ b/slirp/misc.h
@@ -12,7 +12,7 @@ struct ex_list {
void *ex_chardev;
struct in_addr ex_addr; /* Server address */
int ex_fport; /* Port to telnet to */
- const char *ex_exec; /* Command line of what to exec */
+ char *ex_exec; /* Command line of what to exec */
struct ex_list *ex_next;
};