summaryrefslogtreecommitdiff
path: root/rust/zerocopy/src/pointer
diff options
context:
space:
mode:
authorZygmunt Krynicki <me@zygoon.pl>2026-05-02 13:21:33 +0200
committerJohn Johansen <john.johansen@canonical.com>2026-06-13 20:14:06 -0700
commit654fe7505dc6889724d4094fa64f89991afabfc3 (patch)
tree55d86a4dc5ef1e9f315ca34791362499a844470a /rust/zerocopy/src/pointer
parenta58cafd38b46fb1a2220e2fbbcfe291ea75fa147 (diff)
apparmor: aa_label_alloc use aa_label_free on alloc failure
aa_label_alloc() allocates a secid before allocating or taking the label proxy. If the later proxy step fails, the error path only freed the label memory, leaking any resources initialized by aa_label_init(). Use aa_label_free() on the failure path so partially initialized labels release their secid and other label resources before the backing memory is freed. Fixes: f1bd904175e81 ("apparmor: add the base fns() for domain labels") Signed-off-by: Zygmunt Krynicki <me@zygoon.pl> Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'rust/zerocopy/src/pointer')
0 files changed, 0 insertions, 0 deletions