From: Peter Lieven Date: Tue, 17 Dec 2013 10:50:00 +0000 (+0100) Subject: nfs_creat1_cb: fix memleak X-Git-Tag: upstream/1.9.6^2~171^2~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=fadbf8cf56c8675829502bacad9a4f166cf32be9;p=deb_libnfs.git nfs_creat1_cb: fix memleak data is not freed in case of a failure. Signed-off-by: Peter Lieven --- diff --git a/lib/libnfs.c b/lib/libnfs.c index 8a2f16f..2e3e7f2 100644 --- a/lib/libnfs.c +++ b/lib/libnfs.c @@ -1868,7 +1868,7 @@ static void nfs_creat_1_cb(struct rpc_context *rpc, int status, void *command_da if (res->status != NFS3_OK) { rpc_set_error(nfs->rpc, "NFS: CREATE of %s/%s failed with %s(%d)", data->saved_path, str, nfsstat3_to_str(res->status), nfsstat3_to_errno(res->status)); data->cb(nfsstat3_to_errno(res->status), nfs, rpc_get_error(nfs->rpc), data->private_data); - + free_nfs_cb_data(data); return; }