mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-08 14:20:07 +00:00
regex: fix memory leak in Gnulib
Problem and fix reported by Assaf Gordon in: https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and range_ends members too, as they are defined in 'struct re_charset_t' even if not _LIBC. This affects only Gnulib.
This commit is contained in:
parent
82c80ac2eb
commit
fa67ba06ee
@ -1,3 +1,12 @@
|
||||
2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
regex: fix memory leak in Gnulib
|
||||
Problem and fix reported by Assaf Gordon in:
|
||||
https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
|
||||
* posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
|
||||
range_ends members too, as they are defined in 'struct
|
||||
re_charset_t' even if not _LIBC. This affects only Gnulib.
|
||||
|
||||
2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
|
||||
|
@ -3794,9 +3794,9 @@ free_charset (re_charset_t *cset)
|
||||
# ifdef _LIBC
|
||||
re_free (cset->coll_syms);
|
||||
re_free (cset->equiv_classes);
|
||||
# endif
|
||||
re_free (cset->range_starts);
|
||||
re_free (cset->range_ends);
|
||||
# endif
|
||||
re_free (cset->char_classes);
|
||||
re_free (cset);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user