aboutsummaryrefslogtreecommitdiff
path: root/src/rc-status/rc-status.c
diff options
context:
space:
mode:
authorAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-07-19 16:16:07 +0200
committerAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-07-20 03:15:17 +0200
commitf4d79466a083fe238c9f04b4bb7e7d930fff395d (patch)
tree466e96af259f09e9aef9ba5da5ca295f449424c4 /src/rc-status/rc-status.c
parentc3ccaeeddc4d92bfe34cedaa6b71cb6e830fe280 (diff)
librc-misc.c, rc.c, rc-status.c: fix memory leaks
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
Diffstat (limited to 'src/rc-status/rc-status.c')
-rw-r--r--src/rc-status/rc-status.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rc-status/rc-status.c b/src/rc-status/rc-status.c
index 78d5a6af..2a6cfda6 100644
--- a/src/rc-status/rc-status.c
+++ b/src/rc-status/rc-status.c
@@ -131,6 +131,8 @@ static char *get_uptime(const char *service)
"%02"PRId64":%02"PRId64":%02"PRId64" (%s)",
diff_hours, diff_mins, diff_secs, start_count);
}
+ free(start_count);
+ free(start_time_string);
}
return uptime;
}