diff options
author | irungentoo <irungentoo@gmail.com> | 2014-09-21 14:55:23 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-09-21 14:55:23 -0400 |
commit | c43526be9c62b2909d733c5bb8061f6b9333acf5 (patch) | |
tree | d793bc0538aa1ff3ef0804da4ca5d53e22f27ac6 | |
parent | f07c7d65b3d9e06fccc987ecb35207939601aa92 (diff) |
Fixed memory leak.
-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 | } |