diff options
-rw-r--r-- | auto_tests/tox_test.c | 2 | ||||
-rw-r--r-- | toxav/msi.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/auto_tests/tox_test.c b/auto_tests/tox_test.c index 2fbc3083..6d837661 100644 --- a/auto_tests/tox_test.c +++ b/auto_tests/tox_test.c | |||
@@ -84,6 +84,8 @@ int handle_custom_packet(void *object, const uint8_t *data, uint32_t len) | |||
84 | } else { | 84 | } else { |
85 | printf("Custom packet fail. %u\n",number ); | 85 | printf("Custom packet fail. %u\n",number ); |
86 | } | 86 | } |
87 | |||
88 | return 0; | ||
87 | } | 89 | } |
88 | 90 | ||
89 | uint8_t filenum; | 91 | uint8_t filenum; |
diff --git a/toxav/msi.c b/toxav/msi.c index 19925f9d..5efaf147 100644 --- a/toxav/msi.c +++ b/toxav/msi.c | |||
@@ -1621,6 +1621,7 @@ int msi_terminate_session ( MSISession *session ) | |||
1621 | pthread_mutex_destroy(&session->mutex); | 1621 | pthread_mutex_destroy(&session->mutex); |
1622 | 1622 | ||
1623 | LOGGER_DEBUG("Terminated session: %p", session); | 1623 | LOGGER_DEBUG("Terminated session: %p", session); |
1624 | free ( session->calls ); | ||
1624 | free ( session ); | 1625 | free ( session ); |
1625 | return _status; | 1626 | return _status; |
1626 | } | 1627 | } |