Merge pull request #143 from liuchao173/patch-5
free polscript if irqbalance exit
This commit is contained in:
commit
42c3e061ae
|
@ -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':
|
||||
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue