mm-kernel-device-helpers: fix memory leak

Newly refactored string manipulation function is leaking memory as per
our tests. This submission fixes that memory leak.
This commit is contained in:
Nagi Marupaka
2022-01-25 17:32:48 +00:00
parent 0ab9fc343f
commit 73e3da3a10

View File

@@ -71,7 +71,7 @@ build_string_match_pattern (const gchar *str)
GString *regex_pattern;
const gchar *str_start;
gsize len;
gchar *aux;
g_autofree gchar *aux = NULL;
gboolean prefix_match = FALSE;
gboolean suffix_match = FALSE;