fix memory leak
authorChristian Grothoff <christian@grothoff.org>
Thu, 4 Jan 2018 20:46:34 +0000 (21:46 +0100)
committerChristian Grothoff <christian@grothoff.org>
Thu, 4 Jan 2018 20:46:34 +0000 (21:46 +0100)
src/gns/gnunet-service-gns_resolver.c

index c581905992a0dae6e57c696ad84c79e4ee12c4ff..ba71e21fa5382c1add291f8299174bf2d7821942 100644 (file)
@@ -658,6 +658,8 @@ resolver_lookup_get_next_label (struct GNS_ResolverHandle *rh)
     }
     rh->protocol = pe->p_proto;
     rh->service = se->s_port;
+    GNUNET_free (proto_name);
+    GNUNET_free (srv_name);
   }
   return ret;
 }