qemu-stable
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-stable] [PATCH 04/14] block: Plug memory leak on brv_open_image()


From: Markus Armbruster
Subject: [Qemu-stable] [PATCH 04/14] block: Plug memory leak on brv_open_image() error path
Date: Mon, 26 May 2014 19:37:05 +0200

Introduced in commit da557a.  Spotted by Coverity.

Signed-off-by: Markus Armbruster <address@hidden>
---
 block.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/block.c b/block.c
index 40c5e1a..1996f84 100644
--- a/block.c
+++ b/block.c
@@ -1196,6 +1196,7 @@ int bdrv_open_image(BlockDriverState **pbs, const char 
*filename,
                        bdref_key);
             ret = -EINVAL;
         }
+        QDECREF(image_options);
         goto done;
     }
 
-- 
1.9.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]