nfs: Fix memory leak in nfs_file_create()
PATCH 1/1 nfs: Fix memory leak in nfs_file_create()
The leak was introduced in commit 94d6a7a7.
Signed-off-by Kevin Wolf <[email protected]>
--- block/nfs.c | 1 + 1 file changed, 1 insertion(+)
block/nfs.c +1 -0
@@ -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; }
Signature · 1 line
1.8.3.1
Quoted 6 lines · Kevin Wolf
The leak was introduced in commit
94d6a7a7.Signed-off-by Kevin Wolf <[email protected]>--- block/nfs.c | 1 + 1 file changed, 1 insertion(+)
Reviewed-by Stefan Hajnoczi <[email protected]>