aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-10-18 20:26:25 +0000
committerChristian Grothoff <christian@grothoff.org>2013-10-18 20:26:25 +0000
commit36a80c833a5d5eb8f30460bb484cac01bdd9b65c (patch)
tree266cc47ba4b66c5a7228fed602b0097757ffae23 /src
parentd6b03105779d2a22b5b5bf5016ad823fe7ac3485 (diff)
-fix leaks
Diffstat (limited to 'src')
-rw-r--r--src/dns/gnunet-service-dns.c3
-rw-r--r--src/exit/gnunet-daemon-exit.c2
-rw-r--r--src/gns/gnunet-service-gns_resolver.c1
-rw-r--r--src/namestore/namestore.h2
4 files changed, 6 insertions, 2 deletions
diff --git a/src/dns/gnunet-service-dns.c b/src/dns/gnunet-service-dns.c
index 53c19d01cd..ded21605a9 100644
--- a/src/dns/gnunet-service-dns.c
+++ b/src/dns/gnunet-service-dns.c
@@ -388,7 +388,7 @@ request_done (struct RequestRecord *rr)
{
struct sockaddr_in *src = (struct sockaddr_in *) &rr->src_addr;
struct sockaddr_in *dst = (struct sockaddr_in *) &rr->dst_addr;
-
+
source_port = dst->sin_port;
destination_port = src->sin_port;
GNUNET_TUN_initialize_ipv4_header (&ip4,
@@ -1071,6 +1071,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server,
dns_exit = NULL;
}
dnsstub = GNUNET_DNSSTUB_start (dns_exit);
+ GNUNET_free_non_null (dns_exit);
helper_argv[0] = GNUNET_strdup ("gnunet-dns");
if (GNUNET_SYSERR ==
GNUNET_CONFIGURATION_get_value_string (cfg, "dns", "IFNAME", &ifc_name))
diff --git a/src/exit/gnunet-daemon-exit.c b/src/exit/gnunet-daemon-exit.c
index 8d0c7f98e8..9c095b34eb 100644
--- a/src/exit/gnunet-daemon-exit.c
+++ b/src/exit/gnunet-daemon-exit.c
@@ -3674,6 +3674,7 @@ run (void *cls,
return;
}
exit_argv[5] = ipv4addr;
+ ipv4mask = NULL;
if ( (GNUNET_SYSERR ==
GNUNET_CONFIGURATION_get_value_string (cfg, "exit", "IPV4MASK",
&ipv4mask) ||
@@ -3681,6 +3682,7 @@ run (void *cls,
{
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, "EXIT", "IPV4MASK");
GNUNET_SCHEDULER_shutdown ();
+ GNUNET_free_non_null (ipv4mask);
return;
}
exit_argv[6] = ipv4mask;
diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c
index 4e4801c64a..32a68c96b4 100644
--- a/src/gns/gnunet-service-gns_resolver.c
+++ b/src/gns/gnunet-service-gns_resolver.c
@@ -1194,6 +1194,7 @@ handle_gns_resolution_result (void *cls,
GNUNET_break_op (0);
rh->proc (rh->proc_cls, 0, NULL);
GNS_resolver_lookup_cancel (rh);
+ GNUNET_free_non_null (cname);
return;
}
handle_gns_cname_result (rh,
diff --git a/src/namestore/namestore.h b/src/namestore/namestore.h
index 761360c478..b95358fa44 100644
--- a/src/namestore/namestore.h
+++ b/src/namestore/namestore.h
@@ -95,7 +95,7 @@ struct LookupBlockResponseMessage
*/
struct GNUNET_CRYPTO_EcdsaPublicKey derived_key;
- /* follwed by encrypted block data */
+ /* followed by encrypted block data */
};