cvs: /php4 SAPI.c

From: Date: Sat, 26 Feb 2000 14:21:41 +0000
Subject: cvs: /php4 SAPI.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-11036@lists.php.net to get a copy of this message
thies Sat Feb 26 06:21:41 2000 EDT Modified files: /php4 SAPI.c Log: (sapi_send_headers) fix leak Index: php4/SAPI.c diff -u php4/SAPI.c:1.63 php4/SAPI.c:1.64 --- php4/SAPI.c:1.63 Fri Feb 25 21:03:41 2000 +++ php4/SAPI.c Sat Feb 26 06:21:10 2000 @@ -205,6 +205,8 @@ memcpy(default_header->header, "Content-type: ", sizeof("Content-type: ")); memcpy(default_header->header+sizeof("Content-type: ")-1, default_content_type, default_content_type_len); default_header->header[default_header->header_len] = 0; + + efree(default_content_type); } /* @@ -444,8 +446,6 @@ } zend_llist_apply_with_argument(&SG(sapi_headers).headers, (void (*)(void *, void *)) sapi_module.send_header, SG(server_context)); if(SG(sapi_headers).send_default_content_type) { - char *default_content_type = sapi_get_default_content_type(SLS_C); - int default_content_type_len = strlen(default_content_type); sapi_header_struct default_header; sapi_get_default_content_type_header(&default_header SLS_CC);

« previous php.version4 (#11036) next »