diff options
author | Steven Schubiger <stsc@refcnt.org> | 2015-02-15 20:03:43 +0100 |
---|---|---|
committer | Steven Schubiger <stsc@refcnt.org> | 2015-02-15 20:03:43 +0100 |
commit | a61494ccfa8ca882455a194193c432aeb204ea44 (patch) | |
tree | 0ba1846dd51238246539e79d28c6be5958589a71 | |
parent | c8c8382930b8966ab94939d04cf687e8173401c6 (diff) | |
download | colorize-a61494ccfa8ca882455a194193c432aeb204ea44.tar.gz colorize-a61494ccfa8ca882455a194193c432aeb204ea44.tar.bz2 |
Nullify pointers only where appropriate
-rw-r--r-- | colorize.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); } |