projects
/
qemu-gpiodev
/
libfuse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87a0a37
)
Fix a potential resource leak
author
Laszlo Papp
<ext-laszlo.papp@nokia.com>
Mon, 14 Mar 2011 12:58:16 +0000
(14:58 +0200)
committer
Miklos Szeredi
<mszeredi@suse.cz>
Wed, 30 Mar 2011 17:34:58 +0000
(19:34 +0200)
lib/fuse.c
patch
|
blob
|
history
diff --git
a/lib/fuse.c
b/lib/fuse.c
index 9115af78deb03249aae567a0393e4e4e55fcb02e..0bb63f01f6c9ebfc816d9e80acd54f7b30586f6c 100644
(file)
--- a/
lib/fuse.c
+++ b/
lib/fuse.c
@@
-1071,9
+1071,11
@@
static int try_get_path2(struct fuse *f, fuse_ino_t nodeid1, const char *name1,
err = try_get_path(f, nodeid1, name1, path1, wnode1, ticket);
if (!err) {
err = try_get_path(f, nodeid2, name2, path2, wnode2, ticket);
- if (err)
+ if (err)
{
unlock_path(f, nodeid1, wnode1 ? *wnode1 : NULL, NULL,
ticket);
+ free(path1);
+ }
}
return err;
}