IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16459


Ignore:
Timestamp:
Feb 13, 2008, 3:32:33 PM (18 years ago)
Author:
eugene
Message:

plug leak

Location:
trunk/Ohana/src/opihi
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/lib.data/page.c

    r12332 r16459  
    2222    free (page[0].words);
    2323    free (page[0].value);
     24    free (page);
    2425}
    2526
  • trunk/Ohana/src/opihi/lib.shell/convert_to_RPN.c

    r15878 r16459  
    163163  /*** free up unused stack space ***/
    164164
    165   // XXX there should not be any un-freed op_stacks at this point
    166   // clean_stack (op_stack, NSTACK);
     165  // If we parsed everything above, there should not be any un-freed op_stacks at this
     166  // point.  However, if we had a syntax error, we will have op_stack entries left behind.
     167  delete_stack (op_stack, NSTACK);
    167168  free (op_stack);
    168169
  • trunk/Ohana/src/opihi/pcontrol/ResetJob.c

    r14590 r16459  
    4646  }
    4747
    48   gprint (GP_ERR, "programming error in GetJobOutput (should not reach here)\n");
     48  gprint (GP_ERR, "programming error in ResetJob (should not reach here)\n");
     49  FreeIOBuffer (&buffer);
    4950  pcontrol_exit (1);
    5051  return (FALSE);
  • trunk/Ohana/src/opihi/pcontrol/StopHosts.c

    r13720 r16459  
    7676  InitIOBuffer (&buffer, 0x100);
    7777  status = PclientCommand (host, "exit", "Goodbye", &buffer);
     78  FreeIOBuffer (&buffer);
    7879
    7980  /* check on success of pclient command */
Note: See TracChangeset for help on using the changeset viewer.