Skip to content

Commit

Permalink
rc-status.c: fix memory leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
navi-desu authored and williamh committed Jul 22, 2024
1 parent 036fa55 commit 6ddec6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rc-status/rc-status.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6ddec6a

Please sign in to comment.