ref: 795ccf60023fd76893345c8ef6cefd535004a240
parent: 4e09175fdaaffc0483fc9bf767311268794d956c
author: Ben Harris <[email protected]>
date: Mon Feb 20 09:54:17 EST 2023
GTK: Free error message if new_window fails This is kind of pointless because it comes just before a return from main(), but it's pretty harmless and it cheers up AddressSanitizer.
--- a/gtk.c
+++ b/gtk.c
@@ -4115,6 +4115,7 @@
if (!fe) {
fprintf(stderr, "%s: %s\n", pname, error);
+ sfree(error);
return 1;
}