libc/pathbuffer: fix build warning on tasking

[263/1096] Building C object libs/libc/CMakeFiles/c.dir/misc/lib_pathbuffer.c.obj
ctc W574: ["libs/libc/misc/lib_pathbuffer.c" 144/3] 'return' with an expression in function returning void

Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
chao an 2024-09-24 20:04:10 +08:00 committed by Xiang Xiao
parent 6a825f1ee7
commit f44a9c44a7
1 changed files with 1 additions and 1 deletions

View File

@ -141,6 +141,6 @@ void lib_put_pathbuffer(FAR char *buffer)
/* Free the buffer if it was dynamically allocated */
#ifdef CONFIG_LIBC_PATHBUFFER_MALLOC
return lib_free(buffer);
lib_free(buffer);
#endif
}