提交 db598fbc 编写于 作者: R Richard Levitte

Don't try to free NULL values...

上级 8382ec5d
......@@ -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);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册