repositories
/
deb_libnfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecc6564
)
nfs_mkdir_async: fix potential memory leak
author
Arne Redlich
<arne.redlich@googlemail.com>
Mon, 17 Feb 2014 23:19:23 +0000
(
00:19
+0100)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Thu, 20 Feb 2014 02:55:22 +0000
(18:55 -0800)
Pointed out by clang analyzer
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com>
lib/libnfs.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/libnfs.c
b/lib/libnfs.c
index c660db3ecf11211c732003e2abb686459b01c5c0..6f0a0ae86c4358027b20d6c98f2163b915097824 100644
(file)
--- a/
lib/libnfs.c
+++ b/
lib/libnfs.c
@@
-2124,6
+2124,7
@@
int nfs_mkdir_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;
}