Skip to content

Commit

Permalink
Fixed memory leak.
Browse files Browse the repository at this point in the history
  • Loading branch information
irungentoo committed Sep 21, 2014
1 parent f07c7d6 commit c43526b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions auto_tests/tox_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions toxav/msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c43526b

Please sign in to comment.