smackctl: fixed a memory leak in cipso_free()
authorJarkko Sakkinen <jarkko.sakkinen@iki.fi>
Fri, 11 Nov 2011 09:34:52 +0000 (11:34 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@iki.fi>
Fri, 11 Nov 2011 09:34:52 +0000 (11:34 +0200)
utils/smackctl.c

index 7ab7d51..9a58bf6 100644 (file)
@@ -401,6 +401,8 @@ static void cipso_free(struct cipso *cipso)
                free(mapping);
                mapping = next_mapping;
        }
+
+       free(cipso);
 }
 
 static int cipso_apply(struct cipso *cipso)