IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

add FreeCommands

File:
1 edited

Legend:

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

    r16040 r16439  
    1414  Ncommands = 0;
    1515  ALLOCATE (commands, Command, NCOMMANDS);
     16}
     17
     18void FreeCommands () {
     19  int i;
     20
     21  for (i = 0; i < Ncommands; i++) {
     22    if (commands[i].real) continue;
     23    free (commands[i].name);
     24    free (commands[i].help);
     25  }
     26  free (commands);
    1627}
    1728
Note: See TracChangeset for help on using the changeset viewer.