Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!samsung!xylogics!merk!alliant!linus!ted From: ted@mbunix.mitre.org (Ede) Newsgroups: comp.windows.x Subject: Is XtDiskSourceDestroy (R3) missing an fclose? Message-ID: <108613@linus.UUCP> Date: 7 May 90 21:40:30 GMT Sender: news@linus.UUCP Organization: The MITRE Corp., Bedford, MA Lines: 31 I'd like to use R4, but right now I'm trying to write something to port to our IBM box that runs MVS and R3. I tracked the bug (running out of streams) down to a missing fclose in DiskSrc.c. void XtDiskSourceDestroy (src) XtTextSource src; { DiskSourcePtr data; data = (DiskSourcePtr) src->data; /* I added the following line. */ fclose(data->file); XtFree((char *) data->buffer); if (data->is_tempfile) { unlink(data->fileName); XtFree((char *) data->fileName); } XtFree((char *) src->data); XtFree((char *) src); } Has this bug been fixed by an official/unofficial patch? Would there be any problems adding putting this code back into our production library? |Ted Ede -- ted@mbunix.mitre.org -- The MITRE Corporation -- Burlington Road| | linus!mbunix!ted -- Bedford MA, 01730 -- Mail Stop B090 -- (617) 271-7465 | | - this line intentionally left blank - | +---------------------------------------------------------------------------+