aboutsummaryrefslogtreecommitdiff
path: root/src/gns
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-10-10 07:45:58 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-10-10 07:45:58 +0000
commit3adee281e1be628ad05df21d8e524258e4f34943 (patch)
treeef99b237bfb73eb8e874ff5c10ca52e175eaa305 /src/gns
parentfe16cd81a22804fd0343ef80522288e0f347cf9a (diff)
downloadgnunet-3adee281e1be628ad05df21d8e524258e4f34943.tar.gz
gnunet-3adee281e1be628ad05df21d8e524258e4f34943.zip
fix resource leak and if0 unused function
Diffstat (limited to 'src/gns')
-rw-r--r--src/gns/gnunet-service-gns_resolver.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c
index 7a7c1633e..708742bb6 100644
--- a/src/gns/gnunet-service-gns_resolver.c
+++ b/src/gns/gnunet-service-gns_resolver.c
@@ -413,7 +413,7 @@ static struct CacheOps *co_tail;
413 */ 413 */
414static const struct GNUNET_CONFIGURATION_Handle *cfg; 414static const struct GNUNET_CONFIGURATION_Handle *cfg;
415 415
416 416#if 0
417/** 417/**
418 * Check if name is in srv format (_x._y.xxx) 418 * Check if name is in srv format (_x._y.xxx)
419 * 419 *
@@ -442,6 +442,7 @@ is_srv (const char *name)
442 GNUNET_free (ndup); 442 GNUNET_free (ndup);
443 return ret; 443 return ret;
444} 444}
445#endif
445 446
446 447
447/** 448/**
@@ -1618,6 +1619,7 @@ handle_gns_resolution_result (void *cls,
1618 GNUNET_break_op (0); /* record not well-formed */ 1619 GNUNET_break_op (0); /* record not well-formed */
1619 rh->proc (rh->proc_cls, 0, NULL); 1620 rh->proc (rh->proc_cls, 0, NULL);
1620 GNS_resolver_lookup_cancel (rh); 1621 GNS_resolver_lookup_cancel (rh);
1622 GNUNET_free_non_null (cname);
1621 return; 1623 return;
1622 } 1624 }
1623 handle_gns_cname_result (rh, 1625 handle_gns_cname_result (rh,