qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Li Qiang <liq3ea@gmail.com>
To: Pan Nengyuan <pannengyuan@huawei.com>
Cc: Chen Qun <kuhn.chenqun@huawei.com>,
	Euler Robot <euler.robot@huawei.com>,
	Qemu Developers <qemu-devel@nongnu.org>,
	Viktor Prutyanov <viktor.prutyanov@phystech.edu>,
	zhanghailiang <zhang.zhanghailiang@huawei.com>
Subject: Re: [PATCH 03/12] elf2dmp/qemu_elf: Plug memleak in QEMU_Elf_init
Date: Wed, 26 Aug 2020 18:56:12 +0800	[thread overview]
Message-ID: <CAKXe6SLCwZabTFJ6Hc_V6rLEFqKf_EsHfrimMq9xdybBfBEHig@mail.gmail.com> (raw)
In-Reply-To: <20200814160241.7915-4-pannengyuan@huawei.com>

Pan Nengyuan <pannengyuan@huawei.com> 于2020年8月14日周五 下午6:28写道:
>
> Missing g_error_free in QEMU_Elf_init() error path. Fix that.
>
> Reported-by: Euler Robot <euler.robot@huawei.com>
> Signed-off-by: Pan Nengyuan <pannengyuan@huawei.com>

Reviewed-by: Li Qiang <liq3ea@gmail.com>

> ---
> Cc: Viktor Prutyanov <viktor.prutyanov@phystech.edu>
> ---
>  contrib/elf2dmp/qemu_elf.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/contrib/elf2dmp/qemu_elf.c b/contrib/elf2dmp/qemu_elf.c
> index 0db7816586..b601b6d7ba 100644
> --- a/contrib/elf2dmp/qemu_elf.c
> +++ b/contrib/elf2dmp/qemu_elf.c
> @@ -126,6 +126,7 @@ int QEMU_Elf_init(QEMU_Elf *qe, const char *filename)
>      qe->gmf = g_mapped_file_new(filename, TRUE, &gerr);
>      if (gerr) {
>          eprintf("Failed to map ELF dump file \'%s\'\n", filename);
> +        g_error_free(gerr);
>          return 1;
>      }
>
> --
> 2.18.2
>
>


  parent reply	other threads:[~2020-08-26 11:06 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-14 16:02 [PATCH 00/12] fix some error memleaks Pan Nengyuan
2020-08-14 16:02 ` [PATCH 01/12] qga/channel-posix: Plug memory leak in ga_channel_write_all() Pan Nengyuan
2020-08-26 11:57   ` Li Qiang
2020-08-14 16:02 ` [PATCH 02/12] hw/vfio/ap: Plug memleak in vfio_ap_get_group() Pan Nengyuan
2020-08-14  9:46   ` Pierre Morel
2020-08-17 16:11   ` Cornelia Huck
2020-08-26 11:03   ` Li Qiang
2020-08-26 11:41     ` Cornelia Huck
2020-08-26 11:53       ` Li Qiang
2020-08-14 16:02 ` [PATCH 03/12] elf2dmp/qemu_elf: Plug memleak in QEMU_Elf_init Pan Nengyuan
2020-08-23 18:12   ` Viktor Prutyanov
2020-08-26 10:56   ` Li Qiang [this message]
2020-08-14 16:02 ` [PATCH 04/12] elf2dmp/pdb: Plug memleak in pdb_init_from_file Pan Nengyuan
2020-08-23 18:17   ` Viktor Prutyanov
2020-08-26 10:54   ` Li Qiang
2020-08-14 16:02 ` [PATCH 05/12] target/i386/sev: Plug memleak in sev_read_file_base64 Pan Nengyuan
2020-08-26 10:53   ` Li Qiang
2020-08-14 16:02 ` [PATCH 06/12] ui/gtk-gl-area: Plug memleak in gd_gl_area_create_context() Pan Nengyuan
2020-08-26 12:20   ` Li Qiang
2020-08-27  7:06     ` Pan Nengyuan
2020-08-27 11:08       ` Li Qiang
2020-08-14 16:02 ` [PATCH 07/12] target/i386/cpu: Fix memleak in x86_cpu_class_check_missing_features Pan Nengyuan
2020-08-26 12:25   ` Li Qiang
2020-08-14 16:02 ` [PATCH 08/12] migration/colo: Plug memleaks in colo_process_incoming_thread Pan Nengyuan
2020-08-26 12:37   ` Li Qiang
2020-08-27  3:06     ` Pan Nengyuan
2020-08-14 16:02 ` [PATCH 09/12] blockdev: Fix a memleak in drive_backup_prepare() Pan Nengyuan
2020-08-17  9:41   ` Kevin Wolf
2020-08-26 10:45   ` Li Qiang
2020-08-14 16:02 ` [PATCH 10/12] block/file-posix: fix a possible undefined behavior Pan Nengyuan
2020-08-17  8:57   ` Stefano Garzarella
2020-08-17  9:38   ` Kevin Wolf
2020-08-26 10:40   ` Li Qiang
2020-08-14 16:02 ` [PATCH 11/12] vnc-auth-sasl: Plug memleak in vnc_socket_ip_addr_string Pan Nengyuan
2020-08-26 10:37   ` Li Qiang
2020-08-14 16:02 ` [PATCH 12/12] test-util-sockets: Fix a memleak in test_socket_unix_abstract_good Pan Nengyuan
2020-08-14 14:50   ` Li Qiang
2020-08-15  3:10     ` Pan Nengyuan
2020-08-26  6:32 ` [PATCH 00/12] fix some error memleaks Pan Nengyuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKXe6SLCwZabTFJ6Hc_V6rLEFqKf_EsHfrimMq9xdybBfBEHig@mail.gmail.com \
    --to=liq3ea@gmail.com \
    --cc=euler.robot@huawei.com \
    --cc=kuhn.chenqun@huawei.com \
    --cc=pannengyuan@huawei.com \
    --cc=qemu-devel@nongnu.org \
    --cc=viktor.prutyanov@phystech.edu \
    --cc=zhang.zhanghailiang@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).