]> code.citadel.org Git - citadel.git/blobdiff - webcit/context_loop.c
* several memoryleaks
[citadel.git] / webcit / context_loop.c
index 8d7bb9e6666acef7b190aeaf9267bfe80e27e23e..4fe4a2dda75dddaf8b1874df42f954e47aff8cbd 100644 (file)
@@ -101,7 +101,12 @@ void do_housekeeping(void)
                free_attachments(sessions_to_kill);
                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;
                free(sessions_to_kill);
@@ -512,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 */