TECHNICAL INFORMATION DOCUMENT TITLE: PTF174 - Patch for Memory Leak in localtime() DOCUMENT ID: TID300122 DOCUMENT REVISION: A DATE: 25JAN95 ALERT STATUS: Yellow INFORMATION TYPE: Symptom Solution README FOR: PTF174 PRODUCT and VERSION: UnixWare 1.1 ABSTRACT: The ptf174 file contains PTF174 - Patch for Memory leak in localtime(). This patch requires UnixWare Update 1.1.2 and the C Compilation System to be installed on the system. The package will NOT install if any of the required components is not present. SYMPTOM Memory leak when calling localtime() SOLUTION Apply the ptf174 file. Installation Instructions: DATATYPE: datastream 1. Download the ptf174 and ptf174.txt files to the /tmp directory on your machine. 2. Read the release notes contained in this file. 3. Now become root, and add the package to your system using the following commands: $ su # pkgadd -d /tmp/ptf174 ptf174 Solution Specifics 1. General Description This patch corrects a memory leak in the localtime() routine. 2. New Features None 3. Software Notes and Recommendations This patch requires UnixWare Update 1.1.2 and the C Compilation System to be installed on the system. The package will NOT install if any of the required components is not present. 4. Hardware Notes and Recommendations None 5. Installation Instructions Depending on the format: If this PTF was delivered on a diskette, then (as "root") pkgadd -d diskette1 should install this patch. Otherwise, if you have a file such as "ptf174" which is in a "stream" format, then (as "root") pkgadd -d /ptf174 will work. After installing this patch, a system reboot will be needed. 6. Troubleshooting Execute a program containing the below code fragment: for ( ; ; ) { time_t date; date = time(NULL); (void)localtime(&date); } Monitor the process size with ps -l. Before applying this patch, the process size will continuously increase; after the patch is installed, the process size will increase to some maximum size and then remain constant.