Skip to content

Commit 97c9a74

Browse files
committed
clean up variable on exit
1 parent 619de35 commit 97c9a74

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib/tls/pairs.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,10 @@ static bool tls_session_pairs_from_crl(fr_pair_list_t *pair_list, TALLOC_CTX *ct
128128
/*
129129
* RFC 5280 Section 4.2.1.13 says that the distpoint is optional.
130130
*/
131-
if (!dp->distpoint) return false;
131+
if (!dp->distpoint) {
132+
CRL_DIST_POINTS_free(dps);
133+
return false;
134+
}
132135

133136
names = dp->distpoint->name.fullname;
134137

0 commit comments

Comments
 (0)