From f4d79466a083fe238c9f04b4bb7e7d930fff395d Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Fri, 19 Jul 2024 16:16:07 +0200 Subject: librc-misc.c, rc.c, rc-status.c: fix memory leaks Signed-off-by: Anna (navi) Figueiredo Gomes --- src/rc-status/rc-status.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/rc-status') 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; } -- cgit v1.2.3