projects
/
routeros-api.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34593fa
)
ros_connect, create_socket: Free (struct addrinfo *).
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Mon, 29 Mar 2010 17:59:00 +0000
(19:59 +0200)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Mon, 29 Mar 2010 17:59:00 +0000
(19:59 +0200)
It was only freed in case of an error.
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
a8ecb43
..
e328ef8
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-643,11
+643,11
@@
static int create_socket (const char *node, const char *service) /* {{{ */
continue;
}
+ freeaddrinfo (ai_list);
return (fd);
}
freeaddrinfo (ai_list);
-
return (-1);
} /* }}} int create_socket */