summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorMichael McConville <mmcconville@mykolab.com>2015-12-09 13:03:57 -0500
committerWill Estes <westes575@gmail.com>2015-12-09 13:15:08 -0500
commit79691346871720fe2f5885412714a3dce17418f7 (patch)
treefc003cb0289dde3c9363159b6ccc1d5d55618ae8 /src/main.c
parentd95947343e8a52957048b1d0b72c262183f2723f (diff)
Removed NULL-checks before free()
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 4caf8d6..5fadfc4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -398,8 +398,7 @@ void check_options (void)
if ((tablesout = fopen (tablesfilename, "w")) == NULL)
lerr (_("could not create %s"), tablesfilename);
- if (pname)
- free (pname);
+ free(pname);
tablesfilename = 0;
yytbl_writer_init (&tableswr, tablesout);