All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH] spice: fix memory leak
@ 2015-02-11 16:44 ` Gerd Hoffmann
  0 siblings, 0 replies; 8+ messages in thread
From: Gerd Hoffmann @ 2015-02-11 16:44 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, pbonzini, Gerd Hoffmann, Luiz Capitulino

Found by coverity.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 monitor.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/monitor.c b/monitor.c
index c3cc060..29d7e5b 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1101,6 +1101,7 @@ static int client_migrate_info(Monitor *mon, const QDict *qdict,
     if (strcmp(protocol, "spice") == 0) {
         if (!qemu_using_spice(&err)) {
             qerror_report_err(err);
+            error_free(local_err);
             return -1;
         }
 
-- 
1.8.3.1



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

* [Qemu-devel] [PATCH] spice: fix memory leak
@ 2015-02-11 16:44 ` Gerd Hoffmann
  0 siblings, 0 replies; 8+ messages in thread
From: Gerd Hoffmann @ 2015-02-11 16:44 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, pbonzini, Gerd Hoffmann, Luiz Capitulino

Found by coverity.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 monitor.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/monitor.c b/monitor.c
index c3cc060..29d7e5b 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1101,6 +1101,7 @@ static int client_migrate_info(Monitor *mon, const QDict *qdict,
     if (strcmp(protocol, "spice") == 0) {
         if (!qemu_using_spice(&err)) {
             qerror_report_err(err);
+            error_free(local_err);
             return -1;
         }
 
-- 
1.8.3.1

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

* Re: [Qemu-trivial] [PATCH] spice: fix memory leak
  2015-02-11 16:44 ` [Qemu-devel] " Gerd Hoffmann
@ 2015-02-11 16:44   ` Paolo Bonzini
  -1 siblings, 0 replies; 8+ messages in thread
From: Paolo Bonzini @ 2015-02-11 16:44 UTC (permalink / raw)
  To: Gerd Hoffmann, qemu-devel; +Cc: qemu-trivial, Luiz Capitulino



On 11/02/2015 17:44, Gerd Hoffmann wrote:
> Found by coverity.
> 
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> ---
>  monitor.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/monitor.c b/monitor.c
> index c3cc060..29d7e5b 100644
> --- a/monitor.c
> +++ b/monitor.c
> @@ -1101,6 +1101,7 @@ static int client_migrate_info(Monitor *mon, const QDict *qdict,
>      if (strcmp(protocol, "spice") == 0) {
>          if (!qemu_using_spice(&err)) {
>              qerror_report_err(err);
> +            error_free(local_err);
>              return -1;
>          }
>  
> 

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>


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

* Re: [Qemu-devel] [PATCH] spice: fix memory leak
@ 2015-02-11 16:44   ` Paolo Bonzini
  0 siblings, 0 replies; 8+ messages in thread
From: Paolo Bonzini @ 2015-02-11 16:44 UTC (permalink / raw)
  To: Gerd Hoffmann, qemu-devel; +Cc: qemu-trivial, Luiz Capitulino



On 11/02/2015 17:44, Gerd Hoffmann wrote:
> Found by coverity.
> 
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> ---
>  monitor.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/monitor.c b/monitor.c
> index c3cc060..29d7e5b 100644
> --- a/monitor.c
> +++ b/monitor.c
> @@ -1101,6 +1101,7 @@ static int client_migrate_info(Monitor *mon, const QDict *qdict,
>      if (strcmp(protocol, "spice") == 0) {
>          if (!qemu_using_spice(&err)) {
>              qerror_report_err(err);
> +            error_free(local_err);
>              return -1;
>          }
>  
> 

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>

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

* Re: [Qemu-trivial] [PATCH] spice: fix memory leak
  2015-02-11 16:44 ` [Qemu-devel] " Gerd Hoffmann
@ 2015-02-16  8:30   ` Michael Tokarev
  -1 siblings, 0 replies; 8+ messages in thread
From: Michael Tokarev @ 2015-02-16  8:30 UTC (permalink / raw)
  To: Gerd Hoffmann, qemu-devel; +Cc: qemu-trivial, pbonzini, Luiz Capitulino

Applied to -trivial, thanks!

/mjt


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

* Re: [Qemu-devel] [PATCH] spice: fix memory leak
@ 2015-02-16  8:30   ` Michael Tokarev
  0 siblings, 0 replies; 8+ messages in thread
From: Michael Tokarev @ 2015-02-16  8:30 UTC (permalink / raw)
  To: Gerd Hoffmann, qemu-devel; +Cc: qemu-trivial, pbonzini, Luiz Capitulino

Applied to -trivial, thanks!

/mjt

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

* Re: [Qemu-trivial] [PATCH] spice: fix memory leak
  2015-02-16  8:30   ` [Qemu-devel] " Michael Tokarev
@ 2015-02-16  9:40     ` Michael Tokarev
  -1 siblings, 0 replies; 8+ messages in thread
From: Michael Tokarev @ 2015-02-16  9:40 UTC (permalink / raw)
  To: Gerd Hoffmann, qemu-devel; +Cc: qemu-trivial, pbonzini, Luiz Capitulino

16.02.2015 11:30, Michael Tokarev wrote:
> Applied to -trivial, thanks!

Er, nope, the right fix comes from Gonglei.

/mjt


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

* Re: [Qemu-devel] [Qemu-trivial] [PATCH] spice: fix memory leak
@ 2015-02-16  9:40     ` Michael Tokarev
  0 siblings, 0 replies; 8+ messages in thread
From: Michael Tokarev @ 2015-02-16  9:40 UTC (permalink / raw)
  To: Gerd Hoffmann, qemu-devel; +Cc: qemu-trivial, pbonzini, Luiz Capitulino

16.02.2015 11:30, Michael Tokarev wrote:
> Applied to -trivial, thanks!

Er, nope, the right fix comes from Gonglei.

/mjt

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

end of thread, other threads:[~2015-02-16  9:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-11 16:44 [Qemu-trivial] [PATCH] spice: fix memory leak Gerd Hoffmann
2015-02-11 16:44 ` [Qemu-devel] " Gerd Hoffmann
2015-02-11 16:44 ` [Qemu-trivial] " Paolo Bonzini
2015-02-11 16:44   ` [Qemu-devel] " Paolo Bonzini
2015-02-16  8:30 ` [Qemu-trivial] " Michael Tokarev
2015-02-16  8:30   ` [Qemu-devel] " Michael Tokarev
2015-02-16  9:40   ` [Qemu-trivial] " Michael Tokarev
2015-02-16  9:40     ` [Qemu-devel] " Michael Tokarev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.