From 26e789bdcf05fc09d1af9219a0ffd9a110dc8db1 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 25 May 2023 21:42:28 +0200 Subject: [PATCH] platform/tests: fix infiniband_partition_delete() in fake platform Fixes: 9c323261ea15 ('platform: use nm_utils_new_infiniband_name()') (cherry picked from commit 6b28c2867b3cbf1eea88078273e6359b187d9cd0) --- src/core/platform/nm-fake-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/platform/nm-fake-platform.c b/src/core/platform/nm-fake-platform.c index b8d24a99ac..0c366d8212 100644 --- a/src/core/platform/nm-fake-platform.c +++ b/src/core/platform/nm-fake-platform.c @@ -795,7 +795,7 @@ static gboolean infiniband_partition_delete(NMPlatform *platform, int parent, int p_key) { NMFakePlatformLink *parent_device; - gs_free char *name = NULL; + char name[IFNAMSIZ]; parent_device = link_get(platform, parent); g_return_val_if_fail(parent_device != NULL, FALSE);