[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH 15/15] cdebconf: fix mem leaks in stralign



free allocated remaining_line_widths and remaining_line_sizes.

Signed-off-by: maximilian attems <max@stro.at>
---
 packages/cdebconf/src/strutl.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/packages/cdebconf/src/strutl.c b/packages/cdebconf/src/strutl.c
index 7f04571..116715c 100644
--- a/packages/cdebconf/src/strutl.c
+++ b/packages/cdebconf/src/strutl.c
@@ -700,6 +700,8 @@ int stralign(char **strs, int count)
         strs[i] = new_str;
     }
 
+    free(remaining_line_widths);
+    free(remaining_line_sizes);
     free(column_widths);
     free(cells_per_line);
 
-- 
1.7.2.3


Reply to: