Skip to content

xdgmimeglob: Fix a memory leak on a duplicate-entry path

Philip Withnall requested to merge pwithnall/xdgmime:glob-list-leak into master

Rather than strdup()ing strings when passing them into _xdg_glob_list_append(), strdup() them inside the function instead.

This avoids a leak in the case that the list entry (tuple of data and mime_type) already exists in the list.

Signed-off-by: Philip Withnall pwithnall@gnome.org

Merge request reports

Loading