From: Matthias Wachs Date: Mon, 16 Aug 2010 09:35:54 +0000 (+0000) Subject: Fixed Codesonar Bug 10128.60649: Leak X-Git-Tag: initial-import-from-subversion-38251~20686 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1483b7a0f08eeeb434a91ec380a3d2753943ff66;p=oweals%2Fgnunet.git Fixed Codesonar Bug 10128.60649: Leak --- diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c index abeabd3a7..b1e03abb3 100644 --- a/src/transport/plugin_transport_http.c +++ b/src/transport/plugin_transport_http.c @@ -608,12 +608,11 @@ process_interfaces (void *cls, else if ((af == AF_INET6) && (plugin->use_ipv6 == GNUNET_YES) && (plugin->bind4_address == NULL)) { struct in6_addr bnd_cmp6 = ((struct sockaddr_in6 *) addr)->sin6_addr; - t6 = GNUNET_malloc(sizeof(struct IPv6HttpAddress)); if (IN6_IS_ADDR_LINKLOCAL (&((struct sockaddr_in6 *) addr)->sin6_addr)) { return GNUNET_OK; } - + t6 = GNUNET_malloc(sizeof(struct IPv6HttpAddress)); if (plugin->bind6_address != NULL) { if (0 == memcmp(&plugin->bind6_address->sin6_addr, &bnd_cmp6, sizeof (struct in6_addr)))