aboutsummaryrefslogtreecommitdiffhomepage
path: root/acl.go
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-07-15 12:40:29 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-07-15 12:40:29 +0900
commit7d96b0bf350d87463f4c082342d98c54aefe2b51 (patch)
tree7076c7dbc7da3b52766ad719764b5d7ffea9aea3 /acl.go
parent289e681c4181d7e5d9d63fb889ffc43545461248 (diff)
acl: fix memory leak in removeEntry
According to manpage acl_get_qualifier(3) the void * returned by this function could be allocated on the heap. Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'acl.go')
-rw-r--r--acl.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/acl.go b/acl.go
index d176d813..34e51a41 100644
--- a/acl.go
+++ b/acl.go
@@ -156,6 +156,7 @@ func (a *acl) removeEntry(tt C.acl_tag_t, tq int) error {
return err
} else {
q = *(*int)(rq)
+ C.acl_free(rq)
}
// delete on match