Don't try to free NULL values...

This commit is contained in:
Richard Levitte 2003-04-03 20:03:23 +00:00
parent 8382ec5d37
commit db598fbce2

View File

@ -1873,6 +1873,9 @@ int rotate_index(char *dbfile, char *new_suffix, char *old_suffix)
void free_index(CA_DB *db)
{
TXT_DB_free(db->db);
OPENSSL_free(db);
if (db)
{
if (db->db) TXT_DB_free(db->db);
OPENSSL_free(db);
}
}