projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3298bbc
)
block/blkdebug: fix memory leak
author
Elena Afanasova
<eafanasova@gmail.com>
Fri, 9 Oct 2020 19:09:59 +0000
(12:09 -0700)
committer
Laurent Vivier
<laurent@vivier.eu>
Tue, 13 Oct 2020 11:33:46 +0000
(13:33 +0200)
Spotted by PVS-Studio
Signed-off-by: Elena Afanasova <eafanasova@gmail.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <
1e903f928eb3da332cc95e2a6f87243bd9fe66e4
.camel@gmail.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
block/blkdebug.c
patch
|
blob
|
history
diff --git
a/block/blkdebug.c
b/block/blkdebug.c
index eecbf3e5c479729faa087e1746525faad4d3550d..54da719dd151c0b33d703ba0dadef4db9e116097 100644
(file)
--- a/
block/blkdebug.c
+++ b/
block/blkdebug.c
@@
-215,6
+215,7
@@
static int add_rule(void *opaque, QemuOpts *opts, Error **errp)
BLKDEBUG_IO_TYPE__MAX, &local_error);
if (local_error) {
error_propagate(errp, local_error);
+ g_free(rule);
return -1;
}
if (iotype != BLKDEBUG_IO_TYPE__MAX) {