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:
b2fc5c5
)
nfs_lookuppath_async: plug potential memleak
author
Arne Redlich
<arne.redlich@googlemail.com>
Mon, 17 Feb 2014 22:06:32 +0000
(23:06 +0100)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Thu, 20 Feb 2014 02:46:09 +0000
(18:46 -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 61cb29f6c1cc8f3eaf575aabb098f2fd89916020..6e7cd214a3fefa3d47244048c1fc0db2c19cc674 100644
(file)
--- a/
lib/libnfs.c
+++ b/
lib/libnfs.c
@@
-1105,6
+1105,8
@@
static int nfs_lookuppath_async(struct nfs_context *nfs, const char *path, nfs_c
if (data == NULL) {
rpc_set_error(nfs->rpc, "out of memory: failed to allocate "
"nfs_cb_data structure");
+ if (free_continue_data)
+ free_continue_data(continue_data);
return -1;
}
memset(data, 0, sizeof(struct nfs_cb_data));