diff options
author | Kevin Wolf <kwolf@redhat.com> | 2016-11-07 10:27:51 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-11-11 15:54:55 +0100 |
commit | 07555ba6f303d4be8af538c3a66cc46ccb2e5751 (patch) | |
tree | ffd0aeebb0fc5c568ca09076a620248cb6731a3d /block/nfs.c | |
parent | 9dd76f82d9a8d060c217d543304a350ef227e997 (diff) |
nfs: Fix memory leak in nfs_file_create()
The leak was introduced in commit 94d6a7a7.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block/nfs.c')
-rw-r--r-- | block/nfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/nfs.c b/block/nfs.c index 55c4e0b073..d08278323f 100644 --- 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; } |