diff options
Diffstat (limited to 'lib/libutil/login_cap.c')
-rw-r--r-- | lib/libutil/login_cap.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/libutil/login_cap.c b/lib/libutil/login_cap.c index 99e53c6..71e3f8a 100644 --- a/lib/libutil/login_cap.c +++ b/lib/libutil/login_cap.c @@ -121,20 +121,6 @@ arrayize(char *str, const char *chars, int *size) return res; } -static void -freearraystr(char ** array) -{ - /* - * the array[0] should be free'd, and then array. - */ - if (array) { - free(array[0]); - array[0] = NULL; - free(array); - } -} - - /* * login_close() * Frees up all resources relating to a login class @@ -150,7 +136,7 @@ login_close(login_cap_t * lc) free(lc); if (--lc_object_count == 0) { free(internal_string); - freearraystr(internal_array); + free(internal_array); internal_array = NULL; internal_arraysz = 0; internal_string = NULL; |