Blame SOURCES/libpaper-covscan.patch

f4a46a
diff --git a/lib/paper.c b/lib/paper.c
f4a46a
index 57db599..8817aea 100644
f4a46a
--- a/lib/paper.c
f4a46a
+++ b/lib/paper.c
f4a46a
@@ -211,7 +211,10 @@ PAPERSIZEVAR, fall-back to the old behaviour.
f4a46a
 		fclose(ps);
f4a46a
 
f4a46a
 		paperstr = malloc((strlen(papername) + 1) * sizeof(char));
f4a46a
-		if (! paperstr) return 0;
f4a46a
+		if (! paperstr) {
f4a46a
+		    free(papername);
f4a46a
+		    return 0;
f4a46a
+		}
f4a46a
 
f4a46a
 		strcpy(paperstr, papername);
f4a46a
 		free(papername);