diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | src/mcast.c | 2 |
2 files changed, 1 insertions, 2 deletions
@@ -84,6 +84,7 @@ o fix memory leaks in several error output paths o use size_t for buffer sizes o import only required C headers and put local headers on top to check o remove superfluous initialization +o fix double free() bug in the error output path of mcast_create() version 0.9.5 (2007/07/29) ------------------------------ diff --git a/src/mcast.c b/src/mcast.c index 414f031..e977c0b 100644 --- a/src/mcast.c +++ b/src/mcast.c @@ -152,7 +152,6 @@ __mcast_client_create_ipv4(struct mcast_sock *m, struct mcast_conf *conf) sizeof(struct in_addr)) == -1) { debug("mcast_sock_client_create:setsockopt3"); close(m->fd); - free(m); return -1; } @@ -182,7 +181,6 @@ __mcast_client_create_ipv6(struct mcast_sock *m, struct mcast_conf *conf) sizeof(struct in_addr)) == -1) { debug("mcast_sock_client_create:setsockopt3"); close(m->fd); - free(m); return -1; } |