Index | Thread | Search

From:
Theo Buehler <tb@theobuehler.org>
Subject:
simple leaks in rrdp_parser()
To:
tech@openbsd.org
Date:
Fri, 13 Jun 2025 15:08:28 +0200

Download raw body.

Thread
  • Theo Buehler:

    simple leaks in rrdp_parser()

Another straightforward pair of leaks pointed out by our new friend.

Index: main.c
===================================================================
RCS file: /cvs/src/usr.sbin/rpki-client/main.c,v
diff -u -p -r1.282 main.c
--- main.c	4 Jun 2025 09:18:28 -0000	1.282
+++ main.c	13 Jun 2025 12:42:02 -0000
@@ -732,6 +732,8 @@ rrdp_process(struct ibuf *b)
 		io_read_str(b, &uri);
 		io_read_str(b, &last_mod);
 		rrdp_http_fetch(id, uri, last_mod);
+		free(uri);
+		free(last_mod);
 		break;
 	case RRDP_SESSION:
 		s = rrdp_session_read(b);