qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] 9p: local: fix memory leak
@ 2019-12-30  2:23 Yan Wang
  2019-12-30  8:35 ` Philippe Mathieu-Daudé
  2019-12-30 11:34 ` Christian Schoenebeck
  0 siblings, 2 replies; 4+ messages in thread
From: Yan Wang @ 2019-12-30  2:23 UTC (permalink / raw)
  To: groug; +Cc: qemu-devel

Signed-off-by: Yan Wang <wangyan122@huawei.com>
---
 hw/9pfs/9p-local.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/9pfs/9p-local.c b/hw/9pfs/9p-local.c
index ca641390fb..d0592c3b45 100644
--- a/hw/9pfs/9p-local.c
+++ b/hw/9pfs/9p-local.c
@@ -947,7 +947,7 @@ static int local_link(FsContext *ctx, V9fsPath *oldpath,
     if (ctx->export_flags & V9FS_SM_MAPPED_FILE &&
         local_is_mapped_file_metadata(ctx, name)) {
         errno = EINVAL;
-        return -1;
+        goto out;
     }
 
     odirfd = local_opendir_nofollow(ctx, odirpath);
-- 
2.19.1




^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-01-06 10:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-30  2:23 [PATCH] 9p: local: fix memory leak Yan Wang
2019-12-30  8:35 ` Philippe Mathieu-Daudé
2019-12-30 11:34 ` Christian Schoenebeck
2020-01-06 10:54   ` Greg Kurz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).