1
0
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:
irungentoo 2014-09-21 14:55:23 -04:00
parent f07c7d65b3
commit c43526be9c
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98
2 changed files with 3 additions and 0 deletions
auto_tests
toxav

View File

@ -84,6 +84,8 @@ int handle_custom_packet(void *object, const uint8_t *data, uint32_t len)
} else { } else {
printf("Custom packet fail. %u\n",number ); printf("Custom packet fail. %u\n",number );
} }
return 0;
} }
uint8_t filenum; uint8_t filenum;

View File

@ -1621,6 +1621,7 @@ int msi_terminate_session ( MSISession *session )
pthread_mutex_destroy(&session->mutex); pthread_mutex_destroy(&session->mutex);
LOGGER_DEBUG("Terminated session: %p", session); LOGGER_DEBUG("Terminated session: %p", session);
free ( session->calls );
free ( session ); free ( session );
return _status; return _status;
} }