client: fix mem leak
[fio.git] / client.c
index cb5992a9554083522c307fc51685c41988cfb52b..11ad1fe7f4c3ee84fb60967f2afe180072217857 100644 (file)
--- a/client.c
+++ b/client.c
@@ -366,6 +366,7 @@ static int fio_client_send_ini(struct fio_client *client, const char *filename)
        if (len) {
                log_err("fio: failed reading job file %s\n", filename);
                close(fd);
+               free(buf);
                return 1;
        }