projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5daf9b3
)
9pfs: xattr: fix memory leak in v9fs_list_xattr
author
Li Qiang
<liq3ea@gmail.com>
Fri, 7 Apr 2017 10:48:52 +0000
(
03:48
-0700)
committer
Greg Kurz
<groug@kaod.org>
Mon, 10 Apr 2017 07:38:05 +0000
(09:38 +0200)
Free 'orig_value' in error path.
Signed-off-by: Li Qiang <liqiang6-s@360.cn>
Signed-off-by: Greg Kurz <groug@kaod.org>
hw/9pfs/9p-xattr.c
patch
|
blob
|
history
diff --git
a/hw/9pfs/9p-xattr.c
b/hw/9pfs/9p-xattr.c
index eec160b3c2ac0dce27c92237d50f746ca2d284fe..d05c1a1c1df50629c6d25afaaf96cec71e5928a9 100644
(file)
--- a/
hw/9pfs/9p-xattr.c
+++ b/
hw/9pfs/9p-xattr.c
@@
-108,6
+108,7
@@
ssize_t v9fs_list_xattr(FsContext *ctx, const char *path,
g_free(name);
close_preserve_errno(dirfd);
if (xattr_len < 0) {
+ g_free(orig_value);
return -1;
}