Skip to content

cov: fix memory leak caused by abnormal exit

David Teigland lvm-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 3 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] cov: fix memory leak caused by abnormal exit
Quoted 10 lines · Zhiqiang Liu

ping...

Quoted 7 lines · Wu Guanghao

Several possible memory leaks were discovered through tool scans

wuguanghao (3):
cmdlib_lvm2_init: release cmd after registration failed
read_adopt_file: Set the default value of r to NULL,
and release r when exiting abnormally
read_adopt_file: fix memory leak

this commit addressed part of that, but the first didn't seem quite right.
https://sourceware.org/git/?p=lvm2.git;a=blobdiff;f=daemons/lvmlockd/lvmlockd-core.c;h=c570b9d14eb6ec0db4e0bffb371a3cd70c67d9b6;hp=fef9589b9d985e5767c19db2650235fbfd406f7f;hb=62c599f78151e65105c92c87ac406e3f3f360b1a;hpb=350f8845bd39dd7aaf5a52ad5deff6859fd06568