Changeset 5c038ab62b8edc6cd3942a6271ae3696135c1536

Show
Ignore:
Timestamp:
08/06/10 18:25:04 (8 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1281119104 +0000
git-parent:

[90efcaaaccf0ea7f45d7afcb8361f4df41d71b0f]

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

one-time memory leak

Files:

Legend:

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

    rc6a5f68 r5c038ab  
    531531  eventer_t newe; 
    532532  struct iep_daemon_info *info; 
     533  char *cmd = NULL; 
     534 
     535  if(!noit_conf_get_string(NULL, "/stratcon/iep/start/@command", 
     536                           &cmd)) { 
     537    noitL(noit_error, "No IEP start command provided.  You're on your own.\n"); 
     538    setup_iep_connection_later(0); 
     539    return; 
     540  } 
    533541 
    534542  info = calloc(1, sizeof(*info)); 
    535543  info->stdin_pipe[0] = info->stdin_pipe[1] = -1; 
    536544  info->stderr_pipe[0] = info->stderr_pipe[1] = -1; 
     545  info->command = cmd; 
    537546 
    538547  if(!noit_conf_get_string(NULL, "/stratcon/iep/start/@directory", 
    539548                           &info->directory)) 
    540549    info->directory = strdup("."); 
    541   if(!noit_conf_get_string(NULL, "/stratcon/iep/start/@command", 
    542                            &info->command)) { 
    543     noitL(noit_error, "No IEP start command provided.  You're on your own.\n"); 
    544     setup_iep_connection_later(0); 
    545     return; 
    546   } 
    547550  if(pipe(info->stdin_pipe) != 0 || 
    548551     pipe(info->stderr_pipe) != 0) {