Skip to content

Commit

Permalink
Oops. Missing NULL frees.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Laurie committed Jan 17, 1999
1 parent 512d222 commit f9e6fac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crypto/lhash/lhash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
3 changes: 3 additions & 0 deletions crypto/objects/o_names.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f9e6fac

Please sign in to comment.