mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
fixed leak getting proc parents
This commit is contained in:
parent
430c280687
commit
17c8ec8484
1 changed files with 2 additions and 0 deletions
|
@ -50,7 +50,9 @@ func (p *Process) GetParent() {
|
|||
|
||||
// TODO: see how we can reuse this object and the ppid, to save some iterations.
|
||||
// right now it opens the can of leaks.
|
||||
p.mu.Lock()
|
||||
p.Parent = NewProcessEmpty(ppid, "")
|
||||
p.mu.Unlock()
|
||||
p.Parent.ReadPath()
|
||||
|
||||
// get process tree
|
||||
|
|
Loading…
Add table
Reference in a new issue