Skip to content
Snippets Groups Projects
Commit b720b5e3 authored by Simon McVittie's avatar Simon McVittie
Browse files

system=info: Use a fresh linked list of libraries for each architecture


Otherwise, if we process an architecture we can run before an
architecture we can't, we'll try to free the old list twice.
This happens on i386 autobuilders that can't run x86_64 executables.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 1bd59773
No related branches found
No related tags found
1 merge request!28Re-brand steam-runtime-system-info to be more like a standalone tool
......@@ -255,7 +255,6 @@ main (int argc,
JsonGenerator *generator;
gboolean can_run = FALSE;
gchar *json_output;
GList *libraries = NULL;
GList *detailed_errors = NULL;
int opt;
static const char * const multiarch_tuples[] = { SRT_ABI_I386, SRT_ABI_X86_64 };
......@@ -310,6 +309,8 @@ main (int argc,
for (gsize i = 0; i < G_N_ELEMENTS (multiarch_tuples); i++)
{
GList *libraries = NULL;
json_builder_set_member_name (builder, multiarch_tuples[i]);
json_builder_begin_object (builder);
json_builder_set_member_name (builder, "can-run");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment