projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
client: Fix a memory leak in an error path
[fio.git]
/
client.c
diff --git
a/client.c
b/client.c
index b75755963dcb406146376f3cc1e0121adddab94e..7e5ac17de8f380e411eb2590610d2e01c0e5f34d 100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-471,8
+471,10
@@
int fio_client_add(struct client_ops *ops, const char *hostname, void **cookie)
&client->is_sock, &client->port,
&client->addr.sin_addr,
&client->addr6.sin6_addr,
- &client->ipv6))
+ &client->ipv6)) {
+ fio_put_client(client);
return -1;
+ }
client->fd = -1;
client->ops = ops;