Skip to content

Commit 389dd54

Browse files
committed
plug leak in x509_get_sia() introduced earlier today
ok job
1 parent 156330e commit 389dd54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

usr.sbin/rpki-client/x509.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: x509.c,v 1.108 2025/06/19 10:26:34 tb Exp $ */
1+
/* $OpenBSD: x509.c,v 1.109 2025/06/19 15:52:20 tb Exp $ */
22
/*
33
* Copyright (c) 2022 Theo Buehler <[email protected]>
44
* Copyright (c) 2021 Claudio Jeker <[email protected]>
@@ -506,6 +506,7 @@ x509_get_sia(X509 *x, const char *fn, char **out_sia)
506506
warnx("%s: SIA signedObject contains "
507507
"unexpected filename extension",
508508
fn);
509+
free(sia);
509510
goto out;
510511
}
511512
*out_sia = sia;

0 commit comments

Comments
 (0)