Skip to content
Permalink
Browse files

Fix memory leak in nfs_close for NFSv3

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
  • Loading branch information...
sahlberg committed Feb 12, 2019
1 parent f8b06ea commit f141b31c59b3f5d4db765ba05ebdefec14357aea
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/nfs_v3.c
@@ -4288,6 +4288,7 @@ nfs3_close_async(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_cb cb,
struct nfs_cb_data *data;

if (!nfsfh->is_dirty) {
nfs_free_nfsfh(nfsfh);
cb(0, nfs, NULL, private_data);
return 0;
}

0 comments on commit f141b31

Please sign in to comment.
You can’t perform that action at this time.