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

View File

@ -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;

View File

@ -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;
}