From aec4c3d376676cbf3ead2bba3767b7110fce7a74 Mon Sep 17 00:00:00 2001 From: seleznevae Date: Sun, 25 Aug 2019 11:16:15 +0300 Subject: [PATCH] [F] Fixed compilation errors --- lib/fort.c | 5 +++-- src/fort_impl.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/fort.c b/lib/fort.c index 124714e..c12b18b 100644 --- a/lib/fort.c +++ b/lib/fort.c @@ -3057,8 +3057,9 @@ const void *ft_to_string_impl(const ft_table_t *table, enum str_buf_type b_type) return NULL; if (rows == 0) { - result = empty_str_arr[b_type]; - goto clear; + F_FREE(col_vis_width_arr); + F_FREE(row_vis_height_arr); + return empty_str_arr[b_type]; } int tmp = 0; diff --git a/src/fort_impl.c b/src/fort_impl.c index cfaa6cb..e5fcd23 100644 --- a/src/fort_impl.c +++ b/src/fort_impl.c @@ -640,8 +640,9 @@ const void *ft_to_string_impl(const ft_table_t *table, enum str_buf_type b_type) return NULL; if (rows == 0) { - result = empty_str_arr[b_type]; - goto clear; + F_FREE(col_vis_width_arr); + F_FREE(row_vis_height_arr); + return empty_str_arr[b_type]; } int tmp = 0;