From: Ivan Maidanski Date: Fri, 13 Jun 2014 14:22:30 +0000 (+0400) Subject: Fix file descriptor resource leak in GC_register_data_segments (OS/2) X-Git-Tag: gc7_4_4~107 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=85e6a1a6165f5d3155f15211c77640dc1259bc08;p=gc Fix file descriptor resource leak in GC_register_data_segments (OS/2) * os_dep.c (GC_register_data_segments): Call fclose(myexefile) on return (only if OS2). --- diff --git a/os_dep.c b/os_dep.c index 08c501df..bbae09e8 100644 --- a/os_dep.c +++ b/os_dep.c @@ -1538,6 +1538,7 @@ void GC_register_data_segments(void) GC_add_roots_inner((ptr_t)O32_BASE(seg), (ptr_t)(O32_BASE(seg)+O32_SIZE(seg)), FALSE); } + (void)fclose(myexefile); } # else /* !OS2 */