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
c20f1c1f03
commit
2a6afcba80
1 changed files with 2 additions and 0 deletions
|
@ -252,7 +252,9 @@ func (c *Client) Subscribe() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if tempConf, err := c.parseConf(clientCfg.Config); err == nil {
|
if tempConf, err := c.parseConf(clientCfg.Config); err == nil {
|
||||||
|
c.Lock()
|
||||||
clientConnectedRule.Action = rule.Action(tempConf.DefaultAction)
|
clientConnectedRule.Action = rule.Action(tempConf.DefaultAction)
|
||||||
|
c.Unlock()
|
||||||
}
|
}
|
||||||
c.listenForNotifications()
|
c.listenForNotifications()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue