anjuta_environment_editor_get_all_variables always returns an array of null strings / leaks memory
anjuta-environment-editor.c's anjuta_environment_editor_get_all_variables
function always returns an array of NULL
strings and leaks memory due to this line:
var = g_strconcat(name, "=", value, NULL);
var++;
This code probably should match anjuta_environment_editor_get_modified_variables
and instead read (or be deleted, as I see no uses of anjuta_environment_editor_get_all_variables
):
*var = g_strconcat(name, "=", value, NULL);
var++;
This problem was found using the static analysis tool GrammaTech CodeSonar.
Edited by Ghost User