Ticket #3439: (dir_list_reload): fix memory leak.
commit9fa313837771a3626c6eed1027bec0eab2e3d11e
authorAndreas Mohr <and@gmx.li>
Sat, 11 Apr 2015 10:03:19 +0000 (11 13:03 +0300)
committerAndrew Borodin <aborodin@vmail.ru>
Sun, 3 May 2015 16:43:49 +0000 (3 19:43 +0300)
tree5e2c8726ba3c88672f945d417e20954ab5a02439
parent67408e5f24c010383e2da8228251ee9829045b7e
Ticket #3439: (dir_list_reload): fix memory leak.

When dir_copy filling with fentry objects, dir_list_clean() on dir_copy
will never work because dir_copy->len is still zero.

Testcase: switch panels on/off.

(Found by LeakSanitizer.)

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
src/filemanager/dir.c