summaryrefslogtreecommitdiff
path: root/libnm-core/tests/test-setting-dcb.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnm-core/tests/test-setting-dcb.c')
-rw-r--r--libnm-core/tests/test-setting-dcb.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/libnm-core/tests/test-setting-dcb.c b/libnm-core/tests/test-setting-dcb.c
index 8adab8ce8..f7554e81a 100644
--- a/libnm-core/tests/test-setting-dcb.c
+++ b/libnm-core/tests/test-setting-dcb.c
@@ -28,6 +28,7 @@
#include "nm-setting-dcb.h"
#include "nm-connection.h"
#include "nm-errors.h"
+#include "gsystem-local-alloc.h"
#define DCB_FLAGS_ALL (NM_SETTING_DCB_FLAG_ENABLE | \
NM_SETTING_DCB_FLAG_ADVERTISE | \
@@ -36,7 +37,7 @@
static void
test_dcb_flags_valid (void)
{
- NMSettingDcb *s_dcb;
+ gs_unref_object NMSettingDcb *s_dcb = NULL;
GError *error = NULL;
gboolean success;
guint i;
@@ -89,7 +90,7 @@ test_dcb_flags_valid (void)
static void
test_dcb_flags_invalid (void)
{
- NMSettingDcb *s_dcb;
+ gs_unref_object NMSettingDcb *s_dcb = NULL;
GError *error = NULL;
gboolean success;
@@ -148,7 +149,7 @@ test_dcb_flags_invalid (void)
static void
test_dcb_app_priorities (void)
{
- NMSettingDcb *s_dcb;
+ gs_unref_object NMSettingDcb *s_dcb = NULL;
GError *error = NULL;
gboolean success;
@@ -210,7 +211,7 @@ test_dcb_app_priorities (void)
static void
test_dcb_priorities_valid (void)
{
- NMSettingDcb *s_dcb;
+ gs_unref_object NMSettingDcb *s_dcb = NULL;
GError *error = NULL;
gboolean success;
guint i;
@@ -269,7 +270,7 @@ test_dcb_priorities_valid (void)
static void
test_dcb_bandwidth_sums (void)
{
- NMSettingDcb *s_dcb;
+ gs_unref_object NMSettingDcb *s_dcb = NULL;
GError *error = NULL;
gboolean success;