mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
0e2c5907e0
The function mem_chunks_add_ext() allocates but does not release memory if it encounters unexpected errors during dump segment reading. Allocate memory passed to dfi_mem_chunk_add() right before calling the function. This way there is no need for a cleanup anymore. Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com> Reviewed-by: Marc Hartmayer <mhartmay@linux.ibm.com> Reported-by: Marc Hartmayer <mhartmay@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>