author | Florian Forster <octo@collectd.org> | |
Fri, 11 Jan 2013 18:45:43 +0000 (19:45 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Fri, 11 Jan 2013 18:45:43 +0000 (19:45 +0100) | ||
commit | 6a5004f9c4394c8f561ba3b817196e7a50ad7237 | |
tree | 6636254bc47b3fab377d2cd3fd96968f04f2f4f5 | tree | snapshot |
parent | d5b09f2bb673ac9396da52b85bcbd16c98b3d633 | commit | diff |
ethstat plugin: Fix the map lookup.
Previously, a pointer into the configuration structure was used to look
up the mappings. Because the configuration structure is freed or
otherwise modified, this does not work as intended (and may actually
lead to a segmentation fault when unlucky).
For completeness sake, a shutdown callback was added to free the used
memory on exit.
Fixes Github issue 224.
Previously, a pointer into the configuration structure was used to look
up the mappings. Because the configuration structure is freed or
otherwise modified, this does not work as intended (and may actually
lead to a segmentation fault when unlucky).
For completeness sake, a shutdown callback was added to free the used
memory on exit.
Fixes Github issue 224.
src/ethstat.c | diff | blob | history |