summaryrefslogtreecommitdiff
path: root/src/tables.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/tables.c
parentd95947343e8a52957048b1d0b72c262183f2723f (diff)
Removed NULL-checks before free()
Diffstat (limited to 'src/tables.c')
-rw-r--r--src/tables.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tables.c b/src/tables.c
index 62a9dcc..ae2ad9c 100644
--- a/src/tables.c
+++ b/src/tables.c
@@ -115,8 +115,7 @@ int yytbl_data_init (struct yytbl_data *td, enum yytbl_id id)
*/
int yytbl_data_destroy (struct yytbl_data *td)
{
- if (td->td_data)
- free (td->td_data);
+ free(td->td_data);
td->td_data = 0;
free (td);
return 0;