projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dd76f8
)
nfs: Fix memory leak in nfs_file_create()
author
Kevin Wolf
<kwolf@redhat.com>
Mon, 7 Nov 2016 09:27:51 +0000
(10:27 +0100)
committer
Kevin Wolf
<kwolf@redhat.com>
Fri, 11 Nov 2016 14:54:55 +0000
(15:54 +0100)
The leak was introduced in commit
94d6a7a7
.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
block/nfs.c
patch
|
blob
|
history
diff --git
a/block/nfs.c
b/block/nfs.c
index 55c4e0b073178b7806ee1169238af05a6870a121..d08278323fe53e985016aa56f785c6408a29a753 100644
(file)
--- a/
block/nfs.c
+++ b/
block/nfs.c
@@
-676,6
+676,7
@@
static int nfs_file_create(const char *url, QemuOpts *opts, Error **errp)
ret = nfs_ftruncate(client->context, client->fh, total_size);
nfs_client_close(client);
out:
+ QDECREF(options);
g_free(client);
return ret;
}