Changeset 8fd52de5ff1b33c4e303bd9c73fcd27898353757

Show
Ignore:
Timestamp:
05/22/09 21:37:40 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1243028260 +0000
git-parent:

[3e39e0360746c88b3b9df5bc1efbd6560a8a9939]

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

fixes #134

Files:

Legend:

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

    r88a7178 r8fd52de  
    367367    config = noit_conf_get_hash(listener_configs[i], "config"); 
    368368 
    369     noit_listener(address, port, SOCK_STREAM, backlog, 
    370                   sslconfig, config, f, NULL); 
    371   } 
     369    if(noit_listener(address, port, SOCK_STREAM, backlog, 
     370                     sslconfig, config, f, NULL) != 0) { 
     371      if(sslconfig) { 
     372        noit_hash_destroy(sslconfig,free,free); 
     373        free(sslconfig); 
     374      } 
     375      noit_hash_destroy(config,free,free); 
     376      free(config); 
     377    } 
     378  } 
     379  free(listener_configs); 
    372380} 
    373381int 
  • src/stratcon_datastore.c

    r661f070 r8fd52de  
    279279 bad_row: 
    280280  PQclear(d->res); 
     281  free(d); 
    281282  return 0; 
    282283} 
     
    515516    strlcat(dsn, v, sizeof(dsn)); 
    516517  } 
     518  noit_hash_destroy(t, free, free); 
     519  free(t); 
    517520 
    518521  if(cq->dbh) { 
  • src/stratcon_iep.c

    r7be729c r8fd52de  
    267267    } 
    268268    stratcon_iep_line_processor(DS_OP_INSERT, NULL, line); 
    269     free(line); 
    270   } 
     269  } 
     270  free(query_configs); 
    271271} 
    272272 
     
    475475  newe->callback = stratcon_iep_submitter; 
    476476  jc = calloc(1, sizeof(*jc)); 
    477   jc->line = strdup(operand)
     477  jc->line = operand
    478478  jc->remote = strdup(remote_str); 
    479479  newe->closure = jc; 
  • src/stratcon_jlog_streamer.c

    r9488f45 r8fd52de  
    520520    config = noit_conf_get_hash(noit_configs[i], "config"); 
    521521 
    522 noitL(noit_error, "initiating to %s\n", address); 
     522    noitL(noit_error, "initiating to %s\n", address); 
    523523    initiate_noit_connection(address, port, sslconfig, config, 
    524524                             handler, 
    525525                             handler_alloc ? handler_alloc() : handler_ctx, 
    526526                             handler_free); 
    527   } 
     527    noit_hash_destroy(sslconfig,free,free); 
     528    free(sslconfig); 
     529    noit_hash_destroy(config,free,free); 
     530    free(config); 
     531  } 
     532  free(noit_configs); 
    528533} 
    529534void