On Wed, Mar 25, 2015 at 05:37:16PM -0500, Tyler Hicks wrote: > The two internal aa_features objects weren't being unreferenced when the > aa_policy_cache object was being freed. > > Signed-off-by: Tyler Hicks <[email protected]> Acked-by: Steve Beattie <[email protected]>
Thanks.
> ---
> libraries/libapparmor/src/policy_cache.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/libraries/libapparmor/src/policy_cache.c
> b/libraries/libapparmor/src/policy_cache.c
> index 98155a6..a9e43bb 100644
> --- a/libraries/libapparmor/src/policy_cache.c
> +++ b/libraries/libapparmor/src/policy_cache.c
> @@ -203,6 +203,8 @@ aa_policy_cache *aa_policy_cache_ref(aa_policy_cache
> *policy_cache)
> void aa_policy_cache_unref(aa_policy_cache *policy_cache)
> {
> if (policy_cache && atomic_dec_and_test(&policy_cache->ref_count)) {
> + aa_features_unref(policy_cache->kernel_features);
> + aa_features_unref(policy_cache->features);
> free(policy_cache->features_path);
> free(policy_cache->path);
> free(policy_cache);
> --
> 2.1.4
>
>
> --
> AppArmor mailing list
> [email protected]
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/apparmor
--
Steve Beattie
<[email protected]>
http://NxNW.org/~steve/
signature.asc
Description: Digital signature
-- AppArmor mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor
