IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9469


Ignore:
Timestamp:
Oct 10, 2006, 1:20:19 PM (20 years ago)
Author:
eugene
Message:

fixed leak in exec_loop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/lib.shell/exec_loop.c

    r7938 r9469  
    4141  signal (SIGINT, Signal);
    4242
    43   /* free up the list and decrement the shell level */
     43  /* free remaining lines on the list, free the list, decrement the shell level */
     44  for (n ++; n < Nlines; n ++) {
     45      free (lists[ThisList].line[n]);
     46  }
    4447  free (lists[ThisList].line);
    4548  Nlists --;
     
    5154
    5255/** note that the list number runs from 1 - Nlists+1 **/
     56/** XXX this is kind of silly: I should simply define a function
     57    to pop next line off the specified list.  review this... **/
Note: See TracChangeset for help on using the changeset viewer.