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