libnm/tests: fix memleak in test test_nm_utils_check_valid_json()

Fixes: 82f8a54854
This commit is contained in:
Thomas Haller
2016-06-02 10:01:33 +02:00
parent 5dea2efd9e
commit aa04e04c83

View File

@@ -4437,7 +4437,7 @@ test_nm_utils_dns_option_find_idx (void)
static void
_json_config_check_valid (const char *conf, gboolean expected)
{
GError *error = NULL;
gs_free_error GError *error = NULL;
gboolean res;
res = _nm_utils_check_valid_json (conf, &error);