vty_deallocate_custom_table: also reset size
commite8e3fa3ba8d1a8b64d4ab86669c65e4facba8db4
authorJonathan Daugherty <cygnus@foobox.com>
dateThu 5 Mar 2020, 14:19 (7 years ago)
parent0de76e5
cbits/mk_wcwidth.c+1
@@ -333,5 +333,6 @@ void vty_deallocate_custom_table()
333333 if ((custom_table != NULL) && (!custom_table_ready)) {
334334 free(custom_table);
335335 custom_table = NULL;
336+ custom_table_size = 0;
336337 }
337338}