qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] gqa-win: get_pci_info: Fix memory leak
@ 2021-12-13 11:15 Kostiantyn Kostiuk
  2021-12-13 11:15 ` [PATCH 1/5] gqa-win: get_pci_info: Clean dev_info if handle is valid Kostiantyn Kostiuk
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Kostiantyn Kostiuk @ 2021-12-13 11:15 UTC (permalink / raw)
  To: qemu-devel, Michael Roth, Marc-André Lureau,
	Philippe Mathieu-Daudé

This set of patches fixes memory leaks in the get_pci_info function when it fails
to get parent device data. In this case the parent_dev_info and the parent_dev_id
variables will be initialized, but not freed.

Bug: https://bugzilla.redhat.com/show_bug.cgi?id=1958825

Kostiantyn Kostiuk (5):
  gqa-win: get_pci_info: Clean dev_info if handle is valid
  gqa-win: get_pci_info: Use common 'cleanup' label
  gqa-win: get_pci_info: Free parent_dev_info properly
  gqa-win: get_pci_info: Replace 'while' with 2 calls of the function
  gqa-win: get_pci_info: Add g_autofree for few variables

 qga/commands-win32.c | 74 ++++++++++++++++++++++++++++----------------
 1 file changed, 47 insertions(+), 27 deletions(-)

--
2.25.1


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

end of thread, other threads:[~2021-12-13 19:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-13 11:15 [PATCH 0/5] gqa-win: get_pci_info: Fix memory leak Kostiantyn Kostiuk
2021-12-13 11:15 ` [PATCH 1/5] gqa-win: get_pci_info: Clean dev_info if handle is valid Kostiantyn Kostiuk
2021-12-13 19:37   ` Marc-André Lureau
2021-12-13 11:15 ` [PATCH 2/5] gqa-win: get_pci_info: Use common 'cleanup' label Kostiantyn Kostiuk
2021-12-13 19:39   ` Marc-André Lureau
2021-12-13 11:15 ` [PATCH 3/5] gqa-win: get_pci_info: Free parent_dev_info properly Kostiantyn Kostiuk
2021-12-13 19:40   ` Marc-André Lureau
2021-12-13 11:15 ` [PATCH 4/5] gqa-win: get_pci_info: Replace 'while' with 2 calls of the function Kostiantyn Kostiuk
2021-12-13 19:45   ` Marc-André Lureau
2021-12-13 11:15 ` [PATCH 5/5] gqa-win: get_pci_info: Add g_autofree for few variables Kostiantyn Kostiuk
2021-12-13 19:50   ` Marc-André Lureau

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