Update mqtt.c fix for #679

Patch for  "mqtt LWT qos and retain parameters are parsed incorrectly #679"
This commit is contained in:
kvakanet 2015-10-20 13:02:06 +05:00 committed by Jonathan karras
parent 95e2bbb0f0
commit e2dd98ba10
1 changed files with 1 additions and 1 deletions

View File

@ -1334,7 +1334,7 @@ static int mqtt_socket_lwt( lua_State* L )
{
return luaL_error( L, "need lwt message");
}
stack++;
if(mud->connect_info.will_topic){ // free the previous one if there is any
c_free(mud->connect_info.will_topic);
mud->connect_info.will_topic = NULL;