Fix Coverity Scan 1486947 Double free

pull/2505/head
Roger A. Light 4 years ago
parent c661f475b4
commit 07b7533b1e

@ -223,7 +223,6 @@ static int msg_restore(struct mosquitto_sqlite *ms)
if(payload && msg.payloadlen){
msg.plugin_payload = malloc(msg.payloadlen+1);
if(!msg.plugin_payload){
free(msg.plugin_topic);
free(msg.plugin_topic);
failed++;
continue;

Loading…
Cancel
Save