Fix memory leak 73/304073/1 accepted/tizen/unified/20240117.163240 accepted/tizen/unified/riscv/20240117.080055
authorŁukasz Stelmach <l.stelmach@samsung.com>
Mon, 8 Jan 2024 21:00:03 +0000 (22:00 +0100)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Wed, 10 Jan 2024 00:01:30 +0000 (01:01 +0100)
Coverity-ID: 1733876
Change-Id: I106b58cc5cca2d55b235231fbf70052a66b878fb
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
nbd-server.c

index f355538..8a9ca41 100644 (file)
@@ -860,7 +860,7 @@ GArray* parse_cfile(gchar* f, struct generic_conf *const genconf, bool expect_ge
        g_autoptr(GError) err = NULL;
        const char *err_msg=NULL;
        GArray *retval=NULL;
-       gchar **groups;
+       _cleanup_(g_strfreevp) gchar **groups = NULL;
        gboolean bval;
        gint ival;
        gint64 i64val;