Fix memory leak in group connection

This commit is contained in:
Maxim Biro 2023-12-04 21:35:57 -05:00
parent 2994441d9c
commit e700c31b70
No known key found for this signature in database
GPG Key ID: AB3AD9896472BFA4

View File

@ -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;
}