4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-23 09:09:35 +08:00
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
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
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2022-08-31 15:18:08 -04:00
2022-08-31 15:18:08 -04:00