#39 Memory leak in pkgconf_path_add()

Closed
opened 4 months ago by karen-arutyunov · 0 comments

The pkgconf_path_add() function calls realpath(path,NULL) that returns the path allocated with malloc(3). The resulting path is never freed.

Note that the _fullpath() that the realpath() translates to on Windows also returns the malloc-ed path in this case.

The pkgconf_path_add() function calls realpath(path,NULL) that returns the path allocated with malloc(3). The resulting path is never freed. Note that the _fullpath() that the realpath() translates to on Windows also returns the malloc-ed path in this case.
Sign in to join this conversation.
No Label
No Milestone
No assignee
1 Participants
Loading...
Cancel
Save
There is no content yet.