Skip to content
Permalink
Browse files

fix resource leak for not invoking closedir() after opendir()

Signed-off-by: Yunfeng Ye <yeyunfeng@huawei.com>
  • Loading branch information...
yeyunfeng-dev committed Oct 11, 2019
1 parent 0e741b2 commit d23f36745e4523122fbe986e53f7133e06b7d877
Showing with 2 additions and 0 deletions.
  1. +1 −0 classify.c
  2. +1 −0 ui/irqbalance-ui.c
@@ -583,6 +583,7 @@ static void get_irq_user_policy(char *path, int irq, struct user_irq_policy *pol
break;
}
}
closedir(poldir);
}
}
}
@@ -424,6 +424,7 @@ int main(int argc, char **argv)
fclose(f);
}
} while((entry) && (irqbalance_pid == -1));
closedir(dir);
}
if(irqbalance_pid == -1) {
printf("Unable to determine irqbalance PID\n");

0 comments on commit d23f367

Please sign in to comment.
You can’t perform that action at this time.