]> git.meshlink.io Git - meshlink/commitdiff
Free memory.
authorAaron Krebs <aaron.krebs@everbase.net>
Wed, 30 Jul 2014 16:04:17 +0000 (18:04 +0200)
committerAaron Krebs <aaron.krebs@everbase.net>
Wed, 30 Jul 2014 16:04:17 +0000 (18:04 +0200)
src/meshlink.c

index d79739cab053d59dc60e2f62db477e1fbd7495f6..bb17fcac85caeabd240e04441630e66a5d211453 100644 (file)
@@ -1526,6 +1526,10 @@ extern void meshlink_hint_address(meshlink_handle_t *mesh, char *hostname, struc
        
        append_config_file(mesh, n->name, "Address", full_addr_str);
 
+       free(addr_str);
+       free(port_str);
+       free(full_addr_str);
+
        // TODO do we want to fire off a connection attempt right away?
 }