monitoringartist / zabbix-docker-monitoring

:whale: Docker/Kubernetes/Mesos/Marathon/Chronos/LXC/LXD/Swarm container monitoring - Docker image, Zabbix template and C module
https://hub.docker.com/r/monitoringartist/zabbix-agent-xxl-limited/
GNU General Public License v2.0
1.19k stars 266 forks source link

Fix a couple of memory leaks #174

Closed i-ky closed 2 years ago

i-ky commented 2 years ago

In case of zbx_module_docker_inspect_exec() failure, just like in case of success, inspect_result's value field needs to be either free()'ed or passed further.

The impact of these memory leaks is likely small, since they happen on failures only and it shouldn't happen often.