mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-16 06:08:16 +00:00
LibC VFS: Warn on possible FD path leaks
This commit is contained in:
committed by
Christian Helmuth
parent
222a789fef
commit
06e605defa
@ -49,6 +49,7 @@ namespace Libc {
|
||||
|
||||
void path(char const *newpath)
|
||||
{
|
||||
if (fd_path) { Genode::warning("may leak former FD path memory"); }
|
||||
if (newpath) {
|
||||
Genode::size_t const path_size = ::strlen(newpath) + 1;
|
||||
char *buf = (char*)malloc(path_size);
|
||||
|
Reference in New Issue
Block a user