X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fcontext_loop.c;h=4fe4a2dda75dddaf8b1874df42f954e47aff8cbd;hb=4c9df9f5ffac933f2fe42b3f05de98dcd8adf8f0;hp=4e10f92b230f08f92779ffe1640daf15e617213b;hpb=8370691fac5f01106c9d1ca16053e0bc9ea5dfef;p=citadel.git diff --git a/webcit/context_loop.c b/webcit/context_loop.c index 4e10f92b2..4fe4a2dda 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -105,6 +105,7 @@ void do_housekeeping(void) 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; @@ -516,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 */