diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-07-15 12:40:29 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-07-15 12:40:29 +0900 |
| commit | 7d96b0bf350d87463f4c082342d98c54aefe2b51 (patch) | |
| tree | 7076c7dbc7da3b52766ad719764b5d7ffea9aea3 | |
| parent | 289e681c4181d7e5d9d63fb889ffc43545461248 (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>
| -rw-r--r-- | acl.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |
