diff options
author | Peter Maydell | 2018-02-20 12:52:24 +0100 |
---|---|---|
committer | Peter Maydell | 2018-02-20 12:52:24 +0100 |
commit | b487e2b2ff6e9fff8a45a9600d6de3a7bf82666a (patch) | |
tree | 11374b66b54311254d563eb0c4b66de7dc449ac0 /hw/9pfs/9p-synth.c | |
parent | Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-2.12-pull-r... (diff) | |
parent | 9p: fix leak in synth_name_to_path() (diff) | |
download | qemu-b487e2b2ff6e9fff8a45a9600d6de3a7bf82666a.tar.gz qemu-b487e2b2ff6e9fff8a45a9600d6de3a7bf82666a.tar.xz qemu-b487e2b2ff6e9fff8a45a9600d6de3a7bf82666a.zip |
Merge remote-tracking branch 'remotes/gkurz/tags/for-upstream' into staging
Fix memory leak in synth backend.
# gpg: Signature made Mon 19 Feb 2018 17:29:49 GMT
# gpg: using RSA key 71D4D5E5822F73D6
# gpg: Good signature from "Greg Kurz <groug@kaod.org>"
# gpg: aka "Gregory Kurz <gregory.kurz@free.fr>"
# gpg: aka "[jpeg image of size 3330]"
# Primary key fingerprint: B482 8BAF 9431 40CE F2A3 4910 71D4 D5E5 822F 73D6
* remotes/gkurz/tags/for-upstream:
9p: fix leak in synth_name_to_path()
9p: v9fs_path_copy() readability
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/9pfs/9p-synth.c')
-rw-r--r-- | hw/9pfs/9p-synth.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/9pfs/9p-synth.c b/hw/9pfs/9p-synth.c index 18082dffe8..54239c9bbf 100644 --- a/hw/9pfs/9p-synth.c +++ b/hw/9pfs/9p-synth.c @@ -495,6 +495,7 @@ static int synth_name_to_path(FsContext *ctx, V9fsPath *dir_path, } out: /* Copy the node pointer to fid */ + g_free(target->data); target->data = g_memdup(&node, sizeof(void *)); target->size = sizeof(void *); return 0; |