mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 06:30:08 +01:00
config/test: fix memleaks in test-config.c
This commit is contained in:
parent
d510f0a039
commit
545fbd2b09
1 changed files with 3 additions and 3 deletions
|
|
@ -112,7 +112,7 @@ static void
|
|||
test_config_non_existent (void)
|
||||
{
|
||||
NMConfig *config;
|
||||
GError *error = NULL;
|
||||
gs_free_error GError *error = NULL;
|
||||
|
||||
setup_config (SRCDIR "/no-such-file", "/no/such/dir", NULL);
|
||||
config = nm_config_new (&error);
|
||||
|
|
@ -124,7 +124,7 @@ static void
|
|||
test_config_parse_error (void)
|
||||
{
|
||||
NMConfig *config;
|
||||
GError *error = NULL;
|
||||
gs_free_error GError *error = NULL;
|
||||
|
||||
setup_config (SRCDIR "/bad.conf", "/no/such/dir", NULL);
|
||||
config = nm_config_new (&error);
|
||||
|
|
@ -274,7 +274,7 @@ static void
|
|||
test_config_confdir_parse_error (void)
|
||||
{
|
||||
NMConfig *config;
|
||||
GError *error = NULL;
|
||||
gs_free_error GError *error = NULL;
|
||||
|
||||
/* Using SRCDIR as the conf dir will pick up bad.conf */
|
||||
setup_config (SRCDIR "/NetworkManager.conf", SRCDIR, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue