summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-12-23 20:31:18 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-12-23 20:31:18 +0000
commitde98c97758081386c75a9b3726e735938c2c3977 (patch)
tree744f876e76e5226bc85488e037e48eb37752ba38 /usr.bin/mandoc
parent3a18c9b2cdf3bbc55ede1bfad09ee055f91840c0 (diff)
remove NULL-checks before free()
Diffstat (limited to 'usr.bin/mandoc')
-rw-r--r--usr.bin/mandoc/term_ps.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/mandoc/term_ps.c b/usr.bin/mandoc/term_ps.c
index ed7916e26ca..3823edfb6ae 100644
--- a/usr.bin/mandoc/term_ps.c
+++ b/usr.bin/mandoc/term_ps.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: term_ps.c,v 1.43 2015/10/13 22:57:49 schwarze Exp $ */
+/* $OpenBSD: term_ps.c,v 1.44 2015/12/23 20:31:17 mmcc Exp $ */
/*
* Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -637,10 +637,8 @@ pspdf_free(void *arg)
p = (struct termp *)arg;
- if (p->ps->psmarg)
- free(p->ps->psmarg);
- if (p->ps->pdfobjs)
- free(p->ps->pdfobjs);
+ free(p->ps->psmarg);
+ free(p->ps->pdfobjs);
free(p->ps);
term_free(p);