Wed May 7 10:59:16 EDT 2008 Pekka Pessi <first.last@nokia.com>

* tport_tls.c: avoid free(NULL)



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8336 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-05-09 17:45:13 +00:00
parent a4d8241a5d
commit f4ef1c7847
2 changed files with 4 additions and 2 deletions

View File

@ -1 +1 @@
Fri May 9 13:44:20 EDT 2008
Fri May 9 13:45:02 EDT 2008

View File

@ -299,7 +299,9 @@ void tls_free(tls_t *tls)
BIO_free(tls->bio_con);
for (k = 0; k < TLS_MAX_HOSTS; k++)
free(tls->hosts[k]), tls->hosts[k] = NULL;
if (tls->hosts[k]) {
free(tls->hosts[k]), tls->hosts[k] = NULL;
}
free(tls);
}