Fix possible memory leaks when creating bridges.
Fix possible memory leaks when creating bridges.

tempbottle/mosquitto,tempbottle/mosquitto,tempbottle/mosquitto,tempbottle/mosquitto,tempbottle/mosquitto