]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
write_redis plugin: Clean up allocated fields in `wr_config_free()`. 4260/head
authorFlorian Forster <octo@collectd.org>
Mon, 29 Jan 2024 07:41:13 +0000 (08:41 +0100)
committerFlorian Forster <octo@collectd.org>
Mon, 29 Jan 2024 07:41:13 +0000 (08:41 +0100)
src/write_redis.c

index 32005cd67e7cb18f53d61f22ffbd1bf0a62f30e1..c817e4f414b3e483833720c7aafb2e2f891aa2ed 100644 (file)
@@ -170,7 +170,9 @@ static void wr_config_free(void *ptr) /* {{{ */
     node->conn = NULL;
   }
 
+  pthread_mutex_destroy(&node->lock);
   sfree(node->host);
+  sfree(node->prefix);
   sfree(node);
 } /* }}} void wr_config_free */