list_delete() already free()s the deleted element.
authorGuus Sliepen <guus@tinc-vpn.org>
Thu, 26 Nov 2015 10:29:54 +0000 (11:29 +0100)
committerGuus Sliepen <guus@tinc-vpn.org>
Thu, 26 Nov 2015 10:29:54 +0000 (11:29 +0100)
src/net_socket.c

index 11b6320..767e91e 100644 (file)
@@ -630,7 +630,6 @@ void setup_outgoing_connection(outgoing_t *outgoing) {
 
 remove:
        list_delete(outgoing_list, outgoing);
-       free(outgoing);
 }
 
 /*