Commit ae0a98a3 authored by Christian Hergert's avatar Christian Hergert

compile-commands: use strfreev to free argv

We need to free the whole GStrv, not just the array container. Fixes a
leak detected with valgrind on test-ide-compile-commands.
parent 5454a29c
Pipeline #16246 passed with stage
in 17 minutes and 14 seconds
......@@ -591,7 +591,7 @@ ide_compile_commands_filter_vala (IdeCompileCommands *self,
g_free (*argv);
g_strfreev (*argv);
g_ptr_array_add (ar, NULL);
*argv = (gchar **)g_ptr_array_free (ar, FALSE);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment