Workaround 'resource leak' false positives in alloc_MS, bl/envfile_init
authorIvan Maidanski <ivmai@mail.ru>
Tue, 20 Dec 2016 07:41:40 +0000 (10:41 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 20 Dec 2016 07:41:40 +0000 (10:41 +0300)
commit222f83721c658b5d8466f9a9ab9367900ed71868
tree4ae44f4721699b3a796978240a5e6869a1f18c0b
parent5732651cfc04c3a5dbe044bbf4869e6701c44b17
Workaround 'resource leak' false positives in alloc_MS, bl/envfile_init

* blacklst.c (GC_bl_init): Add assertion that GC_old_stack_bl and
GC_incomplete_stack_bl are both null prior to their assignment (to the
result of GC_scratch_alloc).
* mark.c (alloc_mark_stack): Replace GC_mark_stack_size!=0 with
GC_mark_stack!=NULL (to ensure no memory leak when GC_mark_stack is
assigned for the first time).
* misc.c [GC_READ_ENV_FILE && (MSWIN32 || MSWINCE || CYGWIN32)]
(GC_envfile_init): Add assertion that GC_envfile_content is null prior
to its assignment.
blacklst.c
mark.c
misc.c