diff --git a/build/aclocal/gtk-2.0.m4 b/build/aclocal/gtk-2.0.m4 index 3c6b6dd8eb..533ebecfac 100644 --- a/build/aclocal/gtk-2.0.m4 +++ b/build/aclocal/gtk-2.0.m4 @@ -80,8 +80,10 @@ main () tmp_version = g_strdup("$min_gtk_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_gtk_version"); + g_free(tmp_version); exit(1); } + g_free(tmp_version); if ((gtk_major_version != $gtk_config_major_version) || (gtk_minor_version != $gtk_config_minor_version) || diff --git a/build/aclocal/gtk.m4 b/build/aclocal/gtk.m4 index 6f6a4222f8..0a9961fb66 100644 --- a/build/aclocal/gtk.m4 +++ b/build/aclocal/gtk.m4 @@ -78,9 +78,11 @@ main () /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_gtk_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { + g_free(tmp_version); printf("%s, bad version string\n", "$min_gtk_version"); exit(1); } + g_free(tmp_version); if ((gtk_major_version != $gtk_config_major_version) || (gtk_minor_version != $gtk_config_minor_version) || diff --git a/configure b/configure index 0a6727e2ca..968e728974 100755 --- a/configure +++ b/configure @@ -23471,8 +23471,10 @@ main () tmp_version = g_strdup("$min_gtk_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_gtk_version"); + g_free(tmp_version); exit(1); } + g_free(tmp_version); if ((gtk_major_version != $gtk_config_major_version) || (gtk_minor_version != $gtk_config_minor_version) || @@ -23997,9 +23999,11 @@ main () /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_gtk_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { + g_free(tmp_version); printf("%s, bad version string\n", "$min_gtk_version"); exit(1); } + g_free(tmp_version); if ((gtk_major_version != $gtk_config_major_version) || (gtk_minor_version != $gtk_config_minor_version) || @@ -24269,9 +24273,11 @@ main () /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_gtk_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { + g_free(tmp_version); printf("%s, bad version string\n", "$min_gtk_version"); exit(1); } + g_free(tmp_version); if ((gtk_major_version != $gtk_config_major_version) || (gtk_minor_version != $gtk_config_minor_version) ||