]> git.itanic.dy.fi Git - rrdd/commit
rrdtool: get_last_update: Fix file descriptor leak
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sun, 25 Oct 2020 16:17:08 +0000 (18:17 +0200)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sun, 25 Oct 2020 16:17:08 +0000 (18:17 +0200)
commitadec382c3be9b45bc2d993c60e08583bf7659c80
treeff76004c5fea8fe3c88f36033bf4489ae1fce5f7
parent4a1a8bfcda92a73538006b36ff6c93735b1dd06f
rrdtool: get_last_update: Fix file descriptor leak

Any file descriptors returned by the run_piped() function must be
closed when we no longer need them. Furthermore, we really are not
interested about error stream, so don't bother requeseting it at all.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
rrdtool.c