Skip to contentSkip to conversation

9pfs fix for 2.9 2017-04-10

GIT PULL Applied Greg Kurz 2 participants 3 messages Apr 10, 2017 – Apr 11, 2017

lore
Share & tools
lore

Greg Kurz

author
#0 lore raw

The following changes since commit 5daf9b3025baef10ee7b77daa003d5696b58d5dc:

Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging (2017-04-07 15:23:48 +0100)

are available in the git repository at:

https://github.com/gkurz/qemu.git tags/for-upstream

for you to fetch changes up to 4ffcdef4277a91af15a3c09f7d16af072c29f3f2:

9pfs: xattr: fix memory leak in v9fs_list_xattr (2017-04-10 09:38:05 +0200)

----------------------------------------------------------------
Fixes a memory leak.

----------------------------------------------------------------
Li Qiang (1):
9pfs: xattr: fix memory leak in v9fs_list_xattr

 hw/9pfs/9p-xattr.c | 1 +
 1 file changed, 1 insertion(+)
Signature · 1 line
2.7.4
author
#1 lore raw

[Qemu-devel] [PULL] 9pfs: xattr: fix memory leak in v9fs_list_xattr

From: Li Qiang <[email protected]>

Free 'orig_value' in error path.

---
 hw/9pfs/9p-xattr.c | 1 +
 1 file changed, 1 insertion(+)
hw/9pfs/9p-xattr.c +1 -0
index eec160b3c2ac..d05c1a1c1df5 100644
@@ -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;
     }
 
Signature · 1 line
2.7.4
#2 lore raw
In reply to Greg Kurz
Quoted 15 lines · Greg Kurz

The following changes since commit 5daf9b3025baef10ee7b77daa003d5696b58d5dc:

Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging (2017-04-07 15:23:48 +0100)

are available in the git repository at:

https://github.com/gkurz/qemu.git tags/for-upstream

for you to fetch changes up to 4ffcdef4277a91af15a3c09f7d16af072c29f3f2:

9pfs: xattr: fix memory leak in v9fs_list_xattr (2017-04-10 09:38:05 +0200)

----------------------------------------------------------------
Fixes a memory leak.

Quoted 8 lines

----------------------------------------------------------------
Li Qiang (1):
9pfs: xattr: fix memory leak in v9fs_list_xattr

 hw/9pfs/9p-xattr.c | 1 +
 1 file changed, 1 insertion(+)

--
2.7.4

Applied, thanks.

-- PMM