X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fcontext_loop.c;h=39a85d5c94bd2392533d88849664257b2f91d12e;hb=f4f1153a964cf70beeafb637d60b3827f327418b;hp=a85c87b8ef186c5c67fb530c7323954b6c280da8;hpb=cef995d5a1adbe0286d85cc3b2f597aeb3590835;p=citadel.git diff --git a/webcit/context_loop.c b/webcit/context_loop.c index a85c87b8e..39a85d5c9 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -54,6 +54,7 @@ void DestroySession(wcsession **sessions_to_kill) FreeStrBuf(&((*sessions_to_kill)->httpauth_pass)); FreeStrBuf(&((*sessions_to_kill)->ImportantMsg)); FreeStrBuf(&((*sessions_to_kill)->cs_inet_email)); + FreeStrBuf(&((*sessions_to_kill)->MigrateReadLineBuf)); free((*sessions_to_kill)); (*sessions_to_kill) = NULL; } @@ -516,6 +517,9 @@ void context_loop(int *sock) } else TheSession->httpauth_pass = NewStrBufPlain(httpauth_user, -1); + if (TheSession->MigrateReadLineBuf != NULL) + FlushStrBuf(TheSession->MigrateReadLineBuf); + else TheSession->MigrateReadLineBuf = NewStrBuf(); TheSession->CLineBuf = NewStrBuf(); TheSession->hash_prefs = NewHash(1,NULL); /* Get a hash table for the user preferences */ pthread_mutex_init(&TheSession->SessionMutex, NULL);