We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d27a1a commit 5f88a08Copy full SHA for 5f88a08
1 file changed
toxcore/friend_connection.c
@@ -1032,6 +1032,11 @@ void kill_friend_connections(Friend_Connections *fr_c)
1032
kill_friend_connection(fr_c, i);
1033
}
1034
1035
+ // there might be allocated NONE connections
1036
+ if (fr_c->conns != nullptr) {
1037
+ free(fr_c->conns);
1038
+ }
1039
+
1040
lan_discovery_kill(fr_c->broadcast);
1041
free(fr_c);
1042
0 commit comments