summaryrefslogtreecommitdiffstats
path: root/src/auto
diff options
context:
space:
mode:
authorZdenek Dohnal <zdohnal@redhat.com>2023-12-14 20:22:49 +0100
committerChristian Brabandt <cb@256bit.org>2023-12-14 20:22:49 +0100
commit549f8c0b4ebe47168c98f46c8b62b1eb33da7c9c (patch)
tree8fbe7df196dc9bec4fe42256fea527805076c7c9 /src/auto
parenta8f7f92b56b42ea6a568eca889c48091f47fb429 (diff)
patch 9.0.2166: Memory leak in Configure Script when checking GTKv9.0.2166
Problem: Memory leak in Configure Script when checking GTK Solution: Free the allocated memory If the memory is not freed, GTK GUI VIM cannot be build with address sanitizer for debugging purposes - configure script will report missing GTK, because the testing file compilation fails due reported memory leak. closes: #13672 Signed-off-by: Zdenek Dohnal <zdohnal@redhat.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/auto')
-rwxr-xr-xsrc/auto/configure3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/auto/configure b/src/auto/configure
index 8582298ca8..70ebb33c4d 100755
--- a/src/auto/configure
+++ b/src/auto/configure
@@ -10136,9 +10136,12 @@ system ("touch conf.gtktest");
tmp_version = g_strdup("$min_gtk_version");
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
printf("%s, bad version string\n", "$min_gtk_version");
+ g_free(tmp_version);
exit(1);
}
+g_free(tmp_version);
+
if ((gtk_major_version > major) ||
((gtk_major_version == major) && (gtk_minor_version > minor)) ||
((gtk_major_version == major) && (gtk_minor_version == minor) &&