repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nfs_rmdir_async: fix potential memory leak
[deb_libnfs.git]
/
lib
/
libnfs.c
diff --git
a/lib/libnfs.c
b/lib/libnfs.c
index 6f0a0ae86c4358027b20d6c98f2163b915097824..b26472c0ee384ca55101667b318136fbf05931db 100644
(file)
--- a/
lib/libnfs.c
+++ b/
lib/libnfs.c
@@
-2211,6
+2211,7
@@
int nfs_rmdir_async(struct nfs_context *nfs, const char *path, nfs_cb cb, void *
ptr = strrchr(new_path, '/');
if (ptr == NULL) {
+ free(new_path);
rpc_set_error(nfs->rpc, "Invalid path %s", path);
return -1;
}