Plug memory leak in filemode
authorjob <job@openbsd.org>
Thu, 25 Aug 2022 11:07:28 +0000 (11:07 +0000)
committerjob <job@openbsd.org>
Thu, 25 Aug 2022 11:07:28 +0000 (11:07 +0000)
OK tb@ claudio@

usr.sbin/rpki-client/filemode.c

index 3d622e5..b921c35 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: filemode.c,v 1.8 2022/08/19 12:45:53 tb Exp $ */
+/*     $OpenBSD: filemode.c,v 1.9 2022/08/25 11:07:28 job Exp $ */
 /*
  * Copyright (c) 2019 Claudio Jeker <claudio@openbsd.org>
  * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -431,6 +431,7 @@ proc_parser_file(char *file, unsigned char *buf, size_t len)
        roa_free(roa);
        gbr_free(gbr);
        tal_free(tal);
+       rsc_free(rsc);
 }
 
 /*