Skip to content

Commit

Permalink
Fix memory leak in nfs_close for NFSv3
Browse files Browse the repository at this point in the history
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
  • Loading branch information
sahlberg committed Feb 12, 2019
1 parent f8b06ea commit f141b31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/nfs_v3.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit f141b31

Please sign in to comment.