blob: e3da8fc40577ab9bb54d58f1ec3efad33bd8067c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
https://bugs.gentoo.org/746419
This backports the following commit from upstream git:
commit 591c0f804b5a78421d28edf2adcd429c914bbca1
Author: Ethan A Merritt <merritt@u.washington.edu>
Date: Wed Sep 9 11:00:59 2020 -0700
successive failures of "set print <foo>" could cause double-free
Bug #2312
--- gnuplot-5.2.8-orig/src/command.c
+++ gnuplot-5.2.8/src/command.c
@@ -1867,6 +1867,7 @@
#endif
if (0 > fclose(print_out))
perror(print_out_name);
+ print_out = stderr;
}
free(print_out_name);
|