summaryrefslogtreecommitdiffstats
path: root/policy.c
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2011-11-01 04:56:06 +0100
committerNeilBrown <neilb@suse.de>2011-11-01 04:56:06 +0100
commita5cd79fec4db7be33eb707d1d09f506ad6125cf7 (patch)
treef1b339a79666b74a9257c59b15b8daeac302b8a4 /policy.c
parentAvoid memory leak (diff)
downloadmdadm-a5cd79fec4db7be33eb707d1d09f506ad6125cf7.tar.xz
mdadm-a5cd79fec4db7be33eb707d1d09f506ad6125cf7.zip
policy_add(): Add missing va_end()
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'policy.c')
-rw-r--r--policy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/policy.c b/policy.c
index 7959c970..11142868 100644
--- a/policy.c
+++ b/policy.c
@@ -510,6 +510,7 @@ void policy_add(char *type, ...)
}
pr->next = config_rules;
config_rules = pr;
+ va_end(ap);
}
void policy_free(void)