Skip to content

qemu-config: never call the callback after an error, fix leak

Paolo Bonzini qemu-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v11 patch 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2qemu-config: never call the callback after an errorutil/qemu-config.c+2 -20 replies
2/2qemu-config: fix memory leak on ferror()util/qemu-config.c+2 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] qemu-config: never call the callback after an error, fix leak

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(-)
Signature · 1 line
2.31.1