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

Paolo Bonzini posted 2 patches 2 years, 9 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210714151319.617860-1-pbonzini@redhat.com
util/qemu-config.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
[PATCH v2 0/2] qemu-config: never call the callback after an error, fix leak
Posted by Paolo Bonzini 2 years, 9 months ago
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