client: fix free of wrong pointer
[fio.git] / client.c
index 3cb46ab1e4c81514f8a2d561770106b59d0de068..1fefda852d1c661d4ca06b9fc4a70236987aaf83 100644 (file)
--- a/client.c
+++ b/client.c
@@ -625,7 +625,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);
+               free(pdu);
                return 1;
        }
 
@@ -957,7 +957,7 @@ static void remove_reply_cmd(struct fio_client *client, struct fio_net_cmd *cmd)
        }
 
        if (!reply) {
-               log_err("fio: client: unable to find matching tag (%lx)\n", cmd->tag);
+               log_err("fio: client: unable to find matching tag (%llx)\n", (unsigned long long) cmd->tag);
                return;
        }
 
@@ -1462,7 +1462,7 @@ int fio_handle_clients(struct client_ops *ops)
 
                        client = find_client_by_fd(pfds[i].fd);
                        if (!client) {
-                               log_err("fio: unknown client fd %d\n", pfds[i].fd);
+                               log_err("fio: unknown client fd %ld\n", (long) pfds[i].fd);
                                continue;
                        }
                        if (!fio_handle_client(client)) {