]> code.citadel.org Git - citadel.git/blobdiff - webcit/context_loop.c
* several memoryleaks
[citadel.git] / webcit / context_loop.c
index 27e643093d1c2cdda8b155ab1dc298e09e9c5808..4fe4a2dda75dddaf8b1874df42f954e47aff8cbd 100644 (file)
@@ -102,6 +102,10 @@ void do_housekeeping(void)
                free_march_list(sessions_to_kill);
                DeleteHash(&(sessions_to_kill->hash_prefs));
                DeleteHash(&(sessions_to_kill->IconBarSetttings));
+               FreeStrBuf(&(sessions_to_kill->UrlFragment1));
+               FreeStrBuf(&(sessions_to_kill->UrlFragment2));
+               FreeStrBuf(&(sessions_to_kill->WBuf));
+               FreeStrBuf(&(sessions_to_kill->HBuf));
 
                pthread_mutex_unlock(&sessions_to_kill->SessionMutex);
                sptr = sessions_to_kill->next;
@@ -513,7 +517,10 @@ void context_loop(int sock)
 #endif
        DeleteHash(&TheSession->urlstrings);
        DeleteHash(&TheSession->vars);
-
+       FreeStrBuf(&TheSession->WBuf);
+       FreeStrBuf(&TheSession->HBuf);
+       
+       
        pthread_mutex_unlock(&TheSession->SessionMutex);        /* unbind */
 
        /* Free the request buffer */