提交 f9e6fac3 编写于 作者: B Ben Laurie

Oops. Missing NULL frees.

上级 512d2228
......@@ -176,6 +176,9 @@ LHASH *lh;
unsigned int i;
LHASH_NODE *n,*nn;
if(lh == NULL)
return;
for (i=0; i<lh->num_nodes; i++)
{
n=lh->b[i];
......
......@@ -219,6 +219,9 @@ static int free_type;
static void names_lh_free(onp,type)
OBJ_NAME *onp;
{
if(onp == NULL)
return;
if ((free_type < 0) || (free_type == onp->type))
{
OBJ_NAME_remove(onp->name,onp->type);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册