mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 00:24:40 +01:00
procmon: fixed leak reading proc's environ vars
This commit is contained in:
parent
94492f0a71
commit
290ed40e8d
1 changed files with 2 additions and 0 deletions
|
@ -169,7 +169,9 @@ func (p *Process) ReadEnv() {
|
|||
if parts != nil && len(parts) == 2 {
|
||||
key := core.Trim(parts[0])
|
||||
val := core.Trim(parts[1])
|
||||
p.mu.Lock()
|
||||
p.Env[key] = val
|
||||
p.mu.Unlock()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue