/** @file pswarpCleanup.c
 *
 *  @brief
 *
 *  @ingroup pswarp
 *
 *  @author IfA
 *  @version $Revision: 1.7.20.1 $ $Name: not supported by cvs2svn $
 *  @date $Date: 2009-02-02 21:57:10 $
 *  Copyright 2009 Institute for Astronomy, University of Hawaii
 */

# include "pswarp.h"

void pswarpCleanup (pmConfig *config) {

    psFree (config);

    psTimerStop ();
    psMemCheckCorruption(stderr, true);
    pmModelClassCleanup ();
    psTimeFinalize ();
    psThreadPoolFinalize ();
    pmConceptsDone ();
    pmConfigDone ();
    // fprintf (stderr, "found %d leaks at %s\n", psMemCheckLeaks (0, NULL, stdout, false), "pswarp");
    fprintf (stderr, "found %d leaks at %s\n", psMemCheckLeaks (0, NULL, NULL, false), "pswarp");

    return;
}
