Commit c8d313d7 authored by Stefan Bader's avatar Stefan Bader

Revert "UBUNTU: SAUCE: apparmor: fix reference count bug in label_merge_insert()"

This reverts commit cad5842a.

BugLink: https://bugs.launchpad.net/bugs/1666897Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
parent 5df1cd95
......@@ -1083,6 +1083,7 @@ static struct aa_label *label_merge_insert(struct aa_label *new,
/* TODO: deal with reference labels */
if (new->size == 1) {
label = aa_get_label(&new->vec[0]->label);
aa_put_label(new);
return label;
}
} else if (!stale) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment