From 287c0f46e3499404d8e3bc35f7ae53f8fb678a1f Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org" Date: Thu, 17 Jan 2008 17:45:25 +0000 Subject: Max Kellermann : fix double free() bug in the error output path of mcast_create() --- ChangeLog | 1 + src/mcast.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 01dcc05..2d6cc3e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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; } -- cgit v1.2.3