Fix: Memory leak issue when tokenizing string 56/264456/1 accepted/tizen/unified/20210924.055913 submit/tizen/20210924.013637
authorNishant Chaprana <n.chaprana@samsung.com>
Mon, 20 Sep 2021 07:26:32 +0000 (12:56 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Tue, 21 Sep 2021 05:55:55 +0000 (11:25 +0530)
Change-Id: I71e88bb35384cf919263fa5dda8c4f0f06be6ef2
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
vpn/plugins/wireguard.c

index 25ec32d..e7ffbd1 100644 (file)
@@ -171,6 +171,9 @@ static int parse_allowed_ips(const char *allowed_ips, wg_peer *peer)
                        curaip->next_allowedip = allowedip;
 
                curaip = allowedip;
+#if defined TIZEN_EXT
+               g_strfreev(toks);
+#endif
        }
 
        peer->last_allowedip = curaip;