Skip to content

Commit

Permalink
Fix a memory leak on successful load of CRL
Browse files Browse the repository at this point in the history
  • Loading branch information
beldmit committed Feb 27, 2024
1 parent 2d70cc9 commit e0507b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crypto/x509/by_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ int X509_load_crl_file(X509_LOOKUP *ctx, const char *file, int type)
goto err;
}
count++;
X509_CRL_free(x);
x = NULL;
}
} else if (type == X509_FILETYPE_ASN1) {
x = d2i_X509_CRL_bio(in, NULL);
Expand Down

0 comments on commit e0507b7

Please sign in to comment.