client: Avoid memory leak in fio_client_handle_iolog()
authorErwan Velu <erwan@redhat.com>
Tue, 3 Oct 2017 08:43:11 +0000 (10:43 +0200)
committerErwan Velu <erwan@redhat.com>
Tue, 3 Oct 2017 15:27:42 +0000 (17:27 +0200)
commit44edeed343a217952f1c84bdee64547369450f5f
tree2b31272a4786125b5e76f56e9bf5d2560b6536fd
parentc16035aadd600a3a4c4b241339e3d3099f56c4b2
client:  Avoid memory leak in fio_client_handle_iolog()

The actual code was returning in different places without freeing some pointers in some cases.

We have two places where memory was allocated :
 - pdu = convert_iolog
 - log_pathname = malloc ()

This patch creates a label to manage the return code while checking if
those two pointers needs to be freed.

Signed-off-by: Erwan Velu <erwan@redhat.com>
client.c