summaryrefslogtreecommitdiffstats
path: root/term_ps.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-12-23 20:50:13 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-12-23 20:50:13 +0000
commitf334717d59323c864a9ad2922067d24f8254e593 (patch)
treebfa62bfd3d4b6d384a295420dac6760dc630c9bd /term_ps.c
parentf0d907b5ddcf8c6632e2f8c3301b9ef19abc0a02 (diff)
downloadmandoc-f334717d59323c864a9ad2922067d24f8254e593.tar.gz
remove NULL-checks before free(); from mmcc@
Diffstat (limited to 'term_ps.c')
-rw-r--r--term_ps.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/term_ps.c b/term_ps.c
index 924467b3..f297d35a 100644
--- a/term_ps.c
+++ b/term_ps.c
@@ -644,10 +644,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);