mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 16:44:46 +01:00
prevent mem leak on Subscribe()
This commit is contained in:
parent
37caf49ca3
commit
558f3a78c3
1 changed files with 2 additions and 0 deletions
|
@ -280,7 +280,9 @@ func (c *Client) Subscribe() {
|
|||
}
|
||||
|
||||
if tempConf, err := c.parseConf(clientCfg.Config); err == nil {
|
||||
c.Lock()
|
||||
clientConnectedRule.Action = rule.Action(tempConf.DefaultAction)
|
||||
c.Unlock()
|
||||
}
|
||||
c.listenForNotifications()
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue