qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] qemu-config: never call the callback after an error, fix leak
@ 2021-07-14 15:13 Paolo Bonzini
  2021-07-14 15:13 ` [PATCH v2 1/2] qemu-config: never call the callback after an error Paolo Bonzini
  2021-07-14 15:13 ` [PATCH v2 2/2] qemu-config: fix memory leak on ferror() Paolo Bonzini
  0 siblings, 2 replies; 3+ messages in thread
From: Paolo Bonzini @ 2021-07-14 15:13 UTC (permalink / raw)
  To: qemu-devel; +Cc: armbru

The second patch fixes a memory leak in qemu_config_foreach, reported by
Coverity.  The first is an issue in the same place that was found by
inspection of code in the surroundings of the leak.

Paolo

v1->v2: split in two, keep loc_pop the same

Paolo Bonzini (2):
  qemu-config: never call the callback after an error, fix leak
  qemu-config: fix memory leak on ferror()

 util/qemu-config.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

-- 
2.31.1



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

end of thread, other threads:[~2021-07-14 15:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-14 15:13 [PATCH v2 0/2] qemu-config: never call the callback after an error, fix leak Paolo Bonzini
2021-07-14 15:13 ` [PATCH v2 1/2] qemu-config: never call the callback after an error Paolo Bonzini
2021-07-14 15:13 ` [PATCH v2 2/2] qemu-config: fix memory leak on ferror() Paolo Bonzini

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).