projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mqtt plugin: Fix resource leak.
[collectd.git]
/
src
/
mqtt.c
diff --git
a/src/mqtt.c
b/src/mqtt.c
index
95deb00
..
6b76af9
100644
(file)
--- a/
src/mqtt.c
+++ b/
src/mqtt.c
@@
-448,6
+448,7
@@
static int publish(mqtt_client_conf_t *conf, char const *topic,
* measure; we will try to reconnect the next time we have to publish a
* message */
conf->connected = 0;
+ mosquitto_disconnect(conf->mosq);
pthread_mutex_unlock(&conf->lock);
return (-1);