From: Matthias Wachs Date: Mon, 16 Aug 2010 09:36:27 +0000 (+0000) Subject: Fixed Codesonar 10128.70650 Leak X-Git-Tag: initial-import-from-subversion-38251~20685 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a6fda33268937da14aeda8632c41c7fa3edba6b0;p=oweals%2Fgnunet.git Fixed Codesonar 10128.70650 Leak --- diff --git a/src/transport/plugin_transport_https.c b/src/transport/plugin_transport_https.c index ea97712b5..644b431f3 100644 --- a/src/transport/plugin_transport_https.c +++ b/src/transport/plugin_transport_https.c @@ -617,12 +617,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; - } - + { + 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)))