diff mbox

[PULL,2/8] 9pfs: drop duplicate line in proxy backend

Message ID 1474031354-14185-3-git-send-email-groug@kaod.org (mailing list archive)
State New, archived
Headers show

Commit Message

Greg Kurz Sept. 16, 2016, 1:09 p.m. UTC
This double free did not cause harm because v9fs_string_free() sets
str->data to NULL and g_free(NULL) is valid.

Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
---
 hw/9pfs/9p-proxy.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox

Patch

diff --git a/hw/9pfs/9p-proxy.c b/hw/9pfs/9p-proxy.c
index 52bbf4f1b37c..d091564b6fd2 100644
--- a/hw/9pfs/9p-proxy.c
+++ b/hw/9pfs/9p-proxy.c
@@ -777,7 +777,6 @@  static int proxy_mkdir(FsContext *fs_ctx, V9fsPath *dir_path,
         errno = -retval;
         retval = -1;
     }
-    v9fs_string_free(&fullname);
     return retval;
 }