Skip to content

Commit

Permalink
Merge pull request #143 from liuchao173/patch-5
Browse files Browse the repository at this point in the history
free polscript if irqbalance exit
  • Loading branch information
nhorman committed Dec 3, 2019
2 parents f1fd0b5 + 6e4ef7f commit 42c3e06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions irqbalance.c
Expand Up @@ -153,6 +153,7 @@ static void parse_command_line(int argc, char **argv)
add_cl_banned_irq((int)val);
break;
case 'l':
free(polscript);
polscript = strdup(optarg);
break;
case 'm':
Expand Down Expand Up @@ -702,6 +703,7 @@ int main(int argc, char** argv)
out:
free_object_tree();
free_cl_opts();
free(polscript);

/* Remove pidfile */
if (!foreground_mode && pidfile)
Expand Down

0 comments on commit 42c3e06

Please sign in to comment.