[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Unfreed memory within ls
From: |
Mårten Wadenbäck |
Subject: |
Unfreed memory within ls |
Date: |
Fri, 31 Aug 2007 15:52:21 +0200 (CEST) |
User-agent: |
SquirrelMail/1.4.9a |
Greetings,
I am using coreutils-6.9, and I have noticed that a few dynamically
allocated variables in src/ls.c are never freed. The ones I have found
are:
cwd_file
dirname_quoting_options
filename_quoting_options
column_info->col_arr
column_info
sorted_file
but valgrind suggests there are a few more (which I have not yet located).
Since it is quite hard to understand how the code is organized, I will
need some directions in order to free them at the correct places (in my
test case, I freed them at the end of main(), but they should of course be
freed as soon as they are no longer needed) so that I can make a patch for
this.
Regards,
Mårten Wadenbäck
- Unfreed memory within ls,
Mårten Wadenbäck <=