mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
The function dinfo_get_uid_from_devnode() allocates memory for readbuf but fails to free it in two code paths: 1. When the device name is truncated (error path) 2. At the successful function exit Add the missing free(readbuf) calls to prevent memory leaks in both paths. Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Signed-off-by: Volkan Unal <vunal@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>