Blame SOURCES/a2ps-bad-free.patch

8f1c6e
diff -up a2ps-4.14/lib/encoding.c.bad-free a2ps-4.14/lib/encoding.c
8f1c6e
--- a2ps-4.14/lib/encoding.c.bad-free	2013-04-30 11:49:50.511962062 +0100
8f1c6e
+++ a2ps-4.14/lib/encoding.c	2013-04-30 11:52:18.682573468 +0100
8f1c6e
@@ -541,7 +541,9 @@ encoding_resolve_font_substitute (struct
8f1c6e
     {
8f1c6e
       /* Find if there is a substitute for that font */
8f1c6e
       res = pair_get (encoding->substitutes, font_name);
8f1c6e
-      if (!res)
8f1c6e
+      if (res)
8f1c6e
+        res = xstrdup (res);
8f1c6e
+      else
8f1c6e
 	/* No. Check if this font is supported */
8f1c6e
 	if (font_exists (job, font_name))
8f1c6e
 	  /* Avoid returning sth alloca'd */