When filewriter_init failed due to full disk, error branch freed messages twice. Removed unnecessary free command.
This commit is contained in:
VilhoRaatikka
2014-12-02 23:58:28 +02:00
parent aab30f2eea
commit f2c2e4f81c
2 changed files with 5 additions and 16 deletions

View File

@ -445,17 +445,6 @@ static bool logmanager_init_nomutex(
return_succp:
if (err != 0)
{
if (lm != NULL)
{
if (lm->lm_clientmes != NULL)
{
skygw_message_done(lm->lm_clientmes);
}
if (lm->lm_logmes != NULL)
{
skygw_message_done(lm->lm_logmes);
}
}
/** This releases memory of all created objects */
logmanager_done_nomutex();
fprintf(stderr, "*\n* Error : Initializing log manager failed.\n*\n");