libyal / libpff

Library and tools to access the Personal Folder File (PFF) and the Offline Folder File (OFF) format
GNU Lesser General Public License v3.0
286 stars 74 forks source link

found memory leak in function libpff_folder_determine_ #125

Open gxiGpf opened 5 months ago

gxiGpf commented 5 months ago

I found descriptor_index_value in libpff_folder_determine_sub_folders, libpff_folder_determine_sub_messages, libpff_folder_determine_sub_associated_contents function may not have been released. It may be necessary to add the following code to the return

    if( descriptor_index_value != NULL )
    {
        libpff_index_value_free(
         &descriptor_index_value,
         NULL );
    }