Hi On Thu, Aug 27, 2015 at 11:17 AM, Denis V. Lunev <d...@openvz.org> wrote: > why not to > __str = g_strsplit(str, delim, -1); >>> >>> + strv = g_strsplit(str, delim, -1); >>> + for (i = 0; strv[i]; i++) { >>> + list = g_list_prepend(list, strv[i]); >>> } >>> + g_free(strv); > > g_free(__str); > > This will remove all burden from callers. > You will be able to use const char * as argument too.
Sorry, I don't understand, could you propose a different patch? -- Marc-André Lureau