Kuan-Wei Chiu
65f7ab0bb9
newlib: libc: Fix memory leak in computematchjumps()
...
In cases where malloc fails for the 'g->matchjump' allocation, the code
path does not handle the failure gracefully, potentially leading to a
memory leak. This fix ensures proper cleanup by freeing the allocated
memory for 'pmatches' before returning.
Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
2023-12-01 19:28:55 +01:00
..
2018-01-17 11:47:26 -06:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2022-02-18 18:40:57 -05:00
2018-01-17 11:47:26 -06:00
2018-10-11 08:29:16 +02:00
2018-01-17 11:47:30 -06:00
2018-01-17 11:47:30 -06:00
2018-01-17 11:47:30 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2020-01-29 19:03:31 +01:00
2023-07-13 19:58:29 +02:00
2020-01-29 19:03:31 +01:00
2018-01-17 11:47:26 -06:00
2022-03-16 21:18:25 -04:00
2023-07-13 19:58:29 +02:00
2020-01-29 19:03:31 +01:00
2018-01-17 11:47:26 -06:00
2023-04-19 20:48:14 +02:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2023-12-01 19:28:55 +01:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2022-02-18 18:40:57 -05:00
2019-02-01 10:37:00 +01:00
2020-01-29 19:03:31 +01:00
2022-08-31 15:18:08 -04:00
2020-01-29 19:03:31 +01:00
2022-08-31 15:18:08 -04:00
2020-01-29 19:03:31 +01:00
2018-08-08 10:50:19 +02:00