From 329faeccf72ce8f289004809d5e3245cb6620ab9 Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Mon, 30 Dec 2013 11:20:39 -0200 Subject: drmtest: don't leak memory when parsing the arguments Found this while investigating memory leaks on kms_flip. Detected by Valgrind. Signed-off-by: Paulo Zanoni --- lib/drmtest.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/drmtest.c') diff --git a/lib/drmtest.c b/lib/drmtest.c index 3d79a4d3..7275b7fd 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -911,6 +911,8 @@ int igt_subtest_init_parse_opts(int argc, char **argv, oom_adjust_for_doom(); out: + free(short_opts); + free(combined_opts); print_version(); return ret; -- cgit v1.2.3