IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 31, 2007, 12:52:00 PM (19 years ago)
Author:
jhoblitt
Message:

fix memory leaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/pxconfig.c

    r13575 r13576  
    8989                fprintf(stream, "only one mode selection is allowed\n");
    9090                pxUsage(stream, argc, argv, modes);
     91                psFree(iter);
    9192                return NULL;
    9293            }
     
    101102                psError(PS_ERR_UNKNOWN, true, "can not find arguments for mode");
    102103                fprintf(stderr, "can not find arugments for mode");
     104                psFree(iter);
    103105                return NULL;
    104106            }
     
    151153                psError(PS_ERR_UNKNOWN, false, "boolean type can not be required");
    152154                fprintf(stderr, "boolean type can not be required\n");
     155                psFree(iter);
    153156                return NULL;
    154157                break;
     
    184187                psError(PS_ERR_UNKNOWN, false, "unknown argument type");
    185188                fprintf(stream, "unknown argument type\n");
     189                psFree(iter);
    186190                return NULL;
    187191            ARG_REQUIRED:               
     
    189193                fprintf(stream, "argument %s is required\n", item->name);
    190194                pxUsageMode(stream, argc, argv, config->modeName, config->args);
     195                psFree(iter);
    191196                return NULL;
    192197        }
Note: See TracChangeset for help on using the changeset viewer.