validate: fix double free
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Sat, 10 Oct 2015 09:51:10 +0000 (10:51 +0100)
committerThibault Saunier <tsaunier@gnome.org>
Sat, 10 Oct 2015 09:51:10 +0000 (10:51 +0100)
commit9005428910546de2e1ad61e55a5fad7fdd514c44
treef4d919e18d7d805ee7486f6329d127e1be6ebd5d
parent5067cee05bb1ae69e2a3bebf0afc11db598d3bc9
validate: fix double free

Summary:
Move variable declarations in the for block so we won't try re-free
tldir in case of early short circuiting of the 'for' code.

Depends on D348

Reviewers: thiblahute

Reviewed By: thiblahute

Differential Revision: https://phabricator.freedesktop.org/D349
validate/gst/validate/gst-validate-scenario.c