From: Michael Tremer Date: Fri, 10 Oct 2025 09:57:14 +0000 (+0000) Subject: sources: df: Cleanup /proc/self/mounts on error X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4f3cbcf4237ab8f7eb4085f90fd6456d152e5f3;p=telemetry.git sources: df: Cleanup /proc/self/mounts on error Signed-off-by: Michael Tremer --- diff --git a/src/daemon/sources/df.c b/src/daemon/sources/df.c index 8d3c596..f22dce3 100644 --- a/src/daemon/sources/df.c +++ b/src/daemon/sources/df.c @@ -74,7 +74,7 @@ static int df_heartbeat(collecty_ctx* ctx, collecty_source* source) { stat.f_ffree ); if (r < 0) - return r; + goto ERROR; } ERROR: