Changeset 4a4fa329f7b3b7b3d8927d10092ec0ec3a8c7770

Show
Ignore:
Timestamp:
02/17/11 21:54:50 (3 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1297979690 +0000
git-parent:

[f76d9371047ae30743021167aed4133fc0b7926a]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1297979690 +0000
Message:

fix a memory leak

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_http.c

    rf76d937 r4a4fa32  
    11611161                   (Bytef *)(inbuff), (uLong)inlen, 
    11621162                   9, final ? Z_FINISH : Z_NO_FLUSH, done); 
    1163 noitL(noit_error, " GZIP %d -> %d\n", inlen, olen); 
    11641163    if(Z_OK != err) { 
    11651164      noitL(noit_error, "zlib compress2 error %d\n", err); 
     
    13491348    ctx->res.closed = noit_true; 
    13501349    raw_finalize_encoding(&ctx->res); 
     1350    /* We could have just pushed in the only block */ 
     1351    if(!r) r = ctx->res.output_raw; 
     1352    /* Advance to the end to append out ending */ 
    13511353    if(r) while(r->next) r = r->next; 
     1354    /* Create an ending */ 
    13521355    if(ctx->res.output_options & NOIT_HTTP_CHUNKED) 
    13531356      n = bchain_from_data("0\r\n\r\n", 5); 
    13541357    else 
    13551358      n = NULL; 
     1359    /* Append an ending (chunked) */ 
    13561360    if(r) { 
    13571361      r->next = n;