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 <paulo.r.zanoni@intel.com>
This commit is contained in:
Paulo Zanoni 2013-12-30 11:20:39 -02:00
parent bb40494671
commit 329faeccf7

View File

@ -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;