tests/kms_flip: don't leak the connector_config struct
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Mon, 30 Dec 2013 13:33:16 +0000 (11:33 -0200)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Tue, 7 Jan 2014 11:57:04 +0000 (09:57 -0200)
commit69856b5e7b96f6945da7f6c42a1468a38513b3ca
treef1ca29f49d4c83bdaa418ee71b13b4ef2d2416c1
parent056500bdc5e4243a8baa3503ec9c3fdd7323a454
tests/kms_flip: don't leak the connector_config struct

... in case we can't find a compatible mode. We already have
config[0], we can't return without freeing it first.

Caught by Valgrind.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
tests/kms_flip.c