free the context on that exit place too.
authorWilfried Goesgens <dothebart@citadel.org>
Sat, 12 Feb 2011 13:43:21 +0000 (14:43 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Sat, 12 Feb 2011 13:43:21 +0000 (14:43 +0100)
citadel/modules/pop3client/serv_pop3client.c

index b68d106a21e90c51eac585302badbc336d490e8c..34bb969c9c7e21b4e7c03f3813e4f3ab2c3b186d 100644 (file)
@@ -333,7 +333,10 @@ void pop3client_scan(void) {
         * don't really require extremely fine granularity here, we'll do it
         * with a static variable instead.
         */
-       if (doing_pop3client) return;
+       if (doing_pop3client) {
+               CtdlClearSystemContext();
+               return;
+       }
        doing_pop3client = 1;
 
        CtdlLogPrintf(CTDL_DEBUG, "pop3client started\n");