Skip to content

Commit

Permalink
Remove condition check
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Sielski authored Aug 12, 2016
1 parent c46c5da commit 092bd03
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions janus.c
Original file line number Diff line number Diff line change
Expand Up @@ -3869,10 +3869,8 @@ gint main(int argc, char *argv[])
g_thread_pool_free(tasks, FALSE, FALSE);

JANUS_LOG(LOG_INFO, "Destroying sessions...\n");
if(sessions != NULL)
g_clear_pointer(&sessions, g_hash_table_destroy);
if(old_sessions != NULL)
g_clear_pointer(&old_sessions, g_hash_table_destroy);
g_clear_pointer(&sessions, g_hash_table_destroy);
g_clear_pointer(&old_sessions, g_hash_table_destroy);
JANUS_LOG(LOG_INFO, "Freeing crypto resources...\n");
janus_dtls_srtp_cleanup();
EVP_cleanup();
Expand Down

0 comments on commit 092bd03

Please sign in to comment.