1 Author: Johan Walles <johan.walles@gmail.com>
2 Bug-Debian: http://bugs.debian.org/564517
3 Description: Each time cpulimit finds a process to limit, it does a goto
4 past the call to closedir(). Plug that leak.
6 Origin: vendor, cf. bug
7 Reviewed-By: gregor herrmann <gregoa@debian.org>
8 Last-Update: 2010-01-11
14 if (kill(pid,SIGSTOP)==0 && kill(pid,SIGCONT)==0) {
16 + if (closedir(dip) == -1) {
25 if (kill(pid,SIGSTOP)==0 && kill(pid,SIGCONT)==0) {
27 + if (closedir(dip) == -1) {