mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed memory leak.
This commit is contained in:
parent
f07c7d65b3
commit
c43526be9c
|
@ -84,6 +84,8 @@ int handle_custom_packet(void *object, const uint8_t *data, uint32_t len)
|
|||
} else {
|
||||
printf("Custom packet fail. %u\n",number );
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint8_t filenum;
|
||||
|
|
|
@ -1621,6 +1621,7 @@ int msi_terminate_session ( MSISession *session )
|
|||
pthread_mutex_destroy(&session->mutex);
|
||||
|
||||
LOGGER_DEBUG("Terminated session: %p", session);
|
||||
free ( session->calls );
|
||||
free ( session );
|
||||
return _status;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user