IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 5, 2005, 9:53:49 AM (21 years ago)
Author:
eugene
Message:

fixed some memory leaks, pushed extra init functions into lib inits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pantasks/ControllerOps.c

    r4706 r4714  
    186186  job[0].pid = atoi (string);
    187187  FreeIOBuffer (&buffer);
    188 
    189   InitIOBuffer (&job[0].stdout, 0x100);
    190   InitIOBuffer (&job[0].stderr, 0x100);
    191188  return (TRUE);
    192189}
     
    419416  InitIOBuffer (&buffer, 0x100);
    420417  status = ControllerCommand (cmd, CONTROLLER_PROMPT, &buffer);
     418  FreeIOBuffer (&buffer);
     419
    421420  ControllerStatus = FALSE;
    422421  result = waitpid (ControllerPID, &waitstatus, WNOHANG);
     
    429428  close (stdout_cntl);
    430429  close (stderr_cntl);
    431 
    432   return (TRUE);
    433 }
     430  FreeIOBuffer (&stdout_buffer);
     431  FreeIOBuffer (&stderr_buffer);
     432
     433  return (TRUE);
     434}
Note: See TracChangeset for help on using the changeset viewer.