Show
Ignore:
Timestamp:
09/08/11 23:49:23 (3 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1315525763 -0400
git-parent:

[3f777ae09119907584a10343cd298226cb78b79a]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1315525763 -0400
Message:

OMG memory leak

Files:

Legend:

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

    r94c70b0 ra7531b3  
    131131      rawlen = (uLong)dlen; 
    132132      rawbuff = compbuff; 
    133       if(rawlen != len_out) return -1; 
     133      if(rawlen != len_out) { 
     134        if(compbuff) free(compbuff); 
     135        return -1; 
     136      } 
    134137      memcpy(buf_out, rawbuff, rawlen); 
    135138      break; 
    136139  } 
    137140 
     141  if(compbuff) free(compbuff); 
    138142  return 0; 
    139143}