Skip to content

Commit

Permalink
Fix memory leak in group connection
Browse files Browse the repository at this point in the history
  • Loading branch information
nurupo committed Dec 6, 2023
1 parent 4693f69 commit 82024e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions toxcore/group_connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ int gcc_handle_packet_fragment(const GC_Session *c, GC_Chat *chat, uint32_t peer
gconn = get_gc_connection(chat, peer_number);

if (gconn == nullptr) {
free(payload);
return 0;
}

Expand Down

0 comments on commit 82024e1

Please sign in to comment.