Skip to content

Potential memory leak #67

@BugBeginner

Description

@BugBeginner

In Glib's g_array_free document, it said" The element data if free_segment is FALSE, otherwise NULL. The element data should be freed using g_free(). " So if the second parameter of g_array_free is FALSE, the array's element, i.e., array->data should be freed by g_free.

In lib/file_manager/support.c, line 698, after calling g_array_free(array, FALSE);, it is better to call g_free(array->data)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions