mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-08 16:07:39 -06:00
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>
This commit is contained in:
parent
9dd76f82d9
commit
07555ba6f3
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
ret = nfs_ftruncate(client->context, client->fh, total_size);
|
||||||
nfs_client_close(client);
|
nfs_client_close(client);
|
||||||
out:
|
out:
|
||||||
|
QDECREF(options);
|
||||||
g_free(client);
|
g_free(client);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue