[PATCH 1/5] hexdump-parse.c: Fix Resource leak (CID #26032)
Ryan Long
ryan.long at oarcorp.com
Fri Mar 12 15:18:42 UTC 2021
CID 26032: Resource leak in rtems_shell_hexdump_rewrite().
Closes #4296
---
cpukit/libmisc/shell/hexdump-parse.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/cpukit/libmisc/shell/hexdump-parse.c b/cpukit/libmisc/shell/hexdump-parse.c
index 88b9d56..5b56bbf 100644
--- a/cpukit/libmisc/shell/hexdump-parse.c
+++ b/cpukit/libmisc/shell/hexdump-parse.c
@@ -462,6 +462,9 @@ isint2: switch(fu->bcnt) {
(void)printf("\n");
}
#endif
+#ifdef __rtems__
+ free(nextpr);
+#endif
}
void
--
1.8.3.1
More information about the devel
mailing list