diff options
author | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2013-12-30 11:20:39 -0200 |
---|---|---|
committer | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2014-01-07 09:57:03 -0200 |
commit | 329faeccf72ce8f289004809d5e3245cb6620ab9 (patch) | |
tree | bcd9d02b142d186e8f2ea7cf8f000cb89f48c59b /lib/drmtest.c | |
parent | bb40494671b7641540dcb2015e9411aebd5016bb (diff) |
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>
Diffstat (limited to 'lib/drmtest.c')
-rw-r--r-- | lib/drmtest.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |