IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 25, 2010, 1:17:16 PM (16 years ago)
Author:
Paul Price
Message:

Can't free 'data' (which contains the pmConfig with the pmFPAfiles) until the files have been closed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSub.c

    r27078 r27088  
    7878    }
    7979
    80     if (data) {
    81         psString dump_file = psMetadataLookupStr(NULL, data->config->arguments, "-dumpconfig");
    82         if (dump_file) {
    83             if (!pmConfigDump(data->config, dump_file)) {
    84                 psError(PPSUB_ERR_IO, false, "Unable to dump configuration.");
    85             }
    86         }
    87         psFree(data);
    88     }
    89 
    9080    psExit exitValue = PS_EXIT_SUCCESS;        // Exit value for program
    9181    psErrorCode errorCode = psErrorCodeLast(); // Error code
     
    132122    }
    133123
     124    if (data) {
     125        psString dump_file = psMetadataLookupStr(NULL, data->config->arguments, "-dumpconfig");
     126        if (dump_file) {
     127            if (!pmConfigDump(data->config, dump_file)) {
     128                psError(PPSUB_ERR_IO, false, "Unable to dump configuration.");
     129            }
     130        }
     131        psFree(data);
     132    }
     133
    134134    psTrace("ppSub", 1, "Finished at %f sec\n", psTimerMark("ppSub"));
    135135    psTimerStop();
Note: See TracChangeset for help on using the changeset viewer.