Re: [PATCH 3/4] block/vvfat: Fix leak of mapping_t::path

2021-05-07 Thread Max Reitz
On 30.04.21 18:25, Philippe Mathieu-Daudé wrote: read_directory() keeps pointers to alloc'ed data in path ...: 743 static int read_directory(BDRVVVFATState* s, int mapping_index) 744 { ... 792 buffer = g_malloc(length); ... 828 /* create mapping for this file */

[PATCH 3/4] block/vvfat: Fix leak of mapping_t::path

2021-04-30 Thread Philippe Mathieu-Daudé
read_directory() keeps pointers to alloc'ed data in path ...: 743 static int read_directory(BDRVVVFATState* s, int mapping_index) 744 { ... 792 buffer = g_malloc(length); ... 828 /* create mapping for this file */ 829 if(!is_dot && !is_dotdot && (S_ISDIR(st.st_mode)