Skip to content

Commit

Permalink
clients/upsmon.c: upsmon_cleanup(): free(configfile) in the end
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Dec 6, 2024
1 parent 9046e23 commit 245e18e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clients/upsmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -2376,6 +2376,7 @@ static void upsmon_cleanup(void)
free(shutdowncmd);
free(notifycmd);
free(powerdownflag);
free(configfile);

for (i = 0; notifylist[i].name != NULL; i++) {
free(notifylist[i].msg);
Expand Down

0 comments on commit 245e18e

Please sign in to comment.