Skip to content

Commit

Permalink
Fix invalid free
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Dec 6, 2020
1 parent 3047374 commit 74faabc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,6 @@ int bridge__connect(struct mosquitto *context)
if(rc > 0){
if(rc == MOSQ_ERR_TLS){
net__socket_close(context);
mosquitto__free(notification_topic);
return rc; /* Error already printed */
}else if(rc == MOSQ_ERR_ERRNO){
log__printf(NULL, MOSQ_LOG_ERR, "Error creating bridge: %s.", strerror(errno));
Expand Down

0 comments on commit 74faabc

Please sign in to comment.