aboutsummaryrefslogtreecommitdiffstats
path: root/colorize.c
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2015-02-15 20:03:43 +0100
committerGravatar Steven Schubiger <stsc@refcnt.org> 2015-02-15 20:03:43 +0100
commita61494ccfa8ca882455a194193c432aeb204ea44 (patch)
tree0ba1846dd51238246539e79d28c6be5958589a71 /colorize.c
parentc8c8382930b8966ab94939d04cf687e8173401c6 (diff)
downloadcolorize-a61494ccfa8ca882455a194193c432aeb204ea44.tar.gz
colorize-a61494ccfa8ca882455a194193c432aeb204ea44.tar.bz2
Nullify pointers only where appropriate
Diffstat (limited to 'colorize.c')
-rw-r--r--colorize.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/colorize.c b/colorize.c
index 931d09b..230d4a4 100644
--- a/colorize.c
+++ b/colorize.c
@@ -471,7 +471,7 @@ cleanup (void)
unsigned int i;
for (i = 0; i < stacked_vars; i++)
if (vars_list[i])
- free_null (vars_list[i]);
+ free (vars_list[i]);
free_null (vars_list);
}
@@ -483,8 +483,8 @@ free_color_names (struct color_name **color_names)
unsigned int i;
for (i = 0; color_names[i]; i++)
{
- free_null (color_names[i]->name);
- free_null (color_names[i]->orig);
+ free (color_names[i]->name);
+ free (color_names[i]->orig);
free_null (color_names[i]);
}
}
@@ -980,7 +980,7 @@ print_free_offsets (const char *line, char ***offsets, unsigned int count)
RESTORE_CHAR (offsets[i + 1][0], ch);
}
for (i = 0; i < count; i++)
- free_null (offsets[i]);
+ free (offsets[i]);
free_null (offsets);
}