Changeset 55b34718cb0e6012c3fd901d6184423acd5f07f4

Show
Ignore:
Timestamp:
05/22/10 18:37:07 (4 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1274553427 +0000
git-parent:

[fa84adfbc712fa0e327aa3ba60ccb09632d36fb0]

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

memory leak. sslconfig is copied leaving the alloc'd original to leak

Files:

Legend:

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

    rfa84adf r55b3471  
    399399    if(noit_listener(address, port, SOCK_STREAM, backlog, 
    400400                     sslconfig, config, f, NULL) != 0) { 
    401       if(sslconfig) { 
    402         noit_hash_destroy(sslconfig,free,free); 
    403         free(sslconfig); 
    404       } 
    405401      noit_hash_destroy(config,free,free); 
    406402      free(config); 
     403    } 
     404    if(sslconfig) { 
     405      /* A copy of this is made within noit_listener */ 
     406      noit_hash_destroy(sslconfig,free,free); 
     407      free(sslconfig); 
    407408    } 
    408409  }