Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 04f96076ab15d1b2e5363b170229e7ff3e4d1e97
Ticket: 478c446889d74995ad6e0ac0b5602c01d7e215d9
zlib inflate leaking memory on Z_STREAM_ERROR condition
User & Date: bovine on 2015-06-10 18:13:06
Changes

  1. icomment:
    Is there perhaps also a leak in this error block earlier in that function?
    
        if (headerPtr) {
    	e = inflateGetHeader(&stream, headerPtr);
    	if (e != Z_OK) {
    	    goto error;
    	}
        }
    
    I think that should also call inflateEnd(&stream) prior to the goto?
    
  2. login: "bovine"
  3. mimetype: "text/plain"