From faa15589f173e93279d32330030a6257600214c2 Mon Sep 17 00:00:00 2001 From: Arne Redlich Date: Mon, 17 Feb 2014 23:50:17 +0100 Subject: [PATCH] nfs_fchmod_async: fix use-after-free Spotted by clang analyzer Signed-off-by: Arne Redlich --- lib/libnfs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/libnfs.c b/lib/libnfs.c index 9dbd234..b064028 100644 --- a/lib/libnfs.c +++ b/lib/libnfs.c @@ -3312,7 +3312,6 @@ int nfs_fchmod_async(struct nfs_context *nfs, struct nfsfh *nfsfh, int mode, nfs memcpy(data->fh.data.data_val, nfsfh->fh.data.data_val, data->fh.data.data_len); if (nfs_chmod_continue_internal(nfs, data) != 0) { - free_nfs_cb_data(data); return -1; } -- 2.34.1