mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
cpumf/lshwc: Free buffer allocated with malloc
Free all buffers allocated with malloc before program exit. Handle memory leak in libcpumf_cpuset(). Signed-off-by: Thomas Richter <tmricht@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
9df45d4256
commit
3c5fb0f885
@@ -767,5 +767,6 @@ int main(int argc, char **argv)
|
||||
}
|
||||
free_counternames();
|
||||
free(check);
|
||||
free(ioctlbuffer);
|
||||
return ch;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user