fuzz: Fix leak when assembling datadir path string
commitbcbad8b05c7f9072cadd3d3ebef2992196b73801
authorAlexander Bulekov <alxndr@bu.edu>
Fri, 17 Jul 2020 16:35:23 +0000 (17 12:35 -0400)
committerThomas Huth <thuth@redhat.com>
Tue, 21 Jul 2020 05:21:54 +0000 (21 07:21 +0200)
tree371e6a5eacf8e2e2b0c901b89c92fc8c5f97f363
parent7cee363bc2eff06068db0dc3e59cbc5f1906067e
fuzz: Fix leak when assembling datadir path string

We freed the string containing the final datadir path, but did not free
the path to the executable's directory that we get from
g_path_get_dirname(). Fix that.

Reported-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Message-Id: <20200717163523.1591-1-alxndr@bu.edu>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/fuzz/fuzz.c