* checkpoint thread needs to free its stuff too.
authorWilfried Göesgens <willi@citadel.org>
Mon, 7 Jun 2010 22:38:58 +0000 (22:38 +0000)
committerWilfried Göesgens <willi@citadel.org>
Mon, 7 Jun 2010 22:38:58 +0000 (22:38 +0000)
citadel/modules/checkpoint/serv_checkpoint.c

index da04ac4b906eaa542c9e57c183f744260569a18e..edc26a906a07e552851e104afe8a3e2870823625 100644 (file)
 void *checkpoint_thread(void *arg) {
        struct CitContext checkpointCC;
 
-       CtdlLogPrintf(CTDL_DEBUG, "checkpoint_thread() initializing\n");
 
        CtdlFillSystemContext(&checkpointCC, "checkpoint");
        citthread_setspecific(MyConKey, (void *)&checkpointCC );
 
+       CtdlLogPrintf(CTDL_DEBUG, "checkpoint_thread() initializing\n");
        while (!CtdlThreadCheckStop()) {
                cdb_checkpoint();
                CtdlThreadSleep(60);
        }
 
        CtdlLogPrintf(CTDL_DEBUG, "checkpoint_thread() exiting\n");
+       CtdlClearSystemContext();
        return NULL;
 }