mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
When the subchannel type read from sysfs does not match the requested type, the allocated path is not freed before continuing to the next loop iteration. This causes a memory leak as reported by valgrind. Free the path before continuing. Signed-off-by: Volkan Unal <vunal@linux.ibm.com> Reviewed-by: Vineeth Vijayan <vneethv@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>