IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 4, 2006, 12:14:58 PM (20 years ago)
Author:
Paul Price
Message:

Patching memory leaks by adding pmConfigDone to free file-static pointer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psModules/src/config/pmConfig.c

    r6754 r6773  
    33 *  @author PAP, IfA
    44 *
    5  *  @version $Revision: 1.7.4.8 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-04-01 03:00:23 $
     5 *  @version $Revision: 1.7.4.9 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2006-04-04 22:14:58 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4747
    4848    return config;
     49}
     50
     51void pmConfigDone(void)
     52{
     53    psFree(configPath);
    4954}
    5055
     
    205210    // define the config-file search path (configPath)
    206211    if (configPath) {
    207         psFree (configPath);
     212        psFree(configPath);
    208213        configPath = NULL;
    209214    }
     
    212217        psList *list = psStringSplit(path, ":");
    213218        configPath = psListToArray(list);
    214         psFree (list);
     219        psFree(list);
    215220    }
    216221
Note: See TracChangeset for help on using the changeset viewer.