diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-01-08 05:19:11 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-01-08 05:19:11 +0300 |
commit | 15bb8f9f936ee5ff50d6c6951d03bc1cd051f466 (patch) | |
tree | 8c1245d2020e48f792a65487230063bbc35f3394 /source/blender/editors | |
parent | 61f1faac3f2154de27cedbb100b938e447e5046f (diff) |
Fix file-handle leak when parsing xdg user directories
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_file/fsmenu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_file/fsmenu.c b/source/blender/editors/space_file/fsmenu.c index d8556711c55..2d1151c8f4d 100644 --- a/source/blender/editors/space_file/fsmenu.c +++ b/source/blender/editors/space_file/fsmenu.c @@ -171,6 +171,8 @@ static GHash *fsmenu_xdg_user_dirs_parse(const char *home) } } } + fclose(fp); + return xdg_map; } |