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:
2257433
)
nfs_unlink_async: plug potential memory leak
author
Arne Redlich
<arne.redlich@googlemail.com>
Mon, 17 Feb 2014 23:22:45 +0000
(
00:22
+0100)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Thu, 20 Feb 2014 02:57:28 +0000
(18:57 -0800)
Spotted 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 b26472c0ee384ca55101667b318136fbf05931db..b2502ba8fa5ad2d066bc04deb301c7c492caa88b 100644
(file)
--- a/
lib/libnfs.c
+++ b/
lib/libnfs.c
@@
-2447,6
+2447,7
@@
int nfs_unlink_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;
}