From ec33973319802cbaae836c55224fe5fc50aa5c86 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Mon, 12 Dec 2022 14:58:52 +0100 Subject: [PATCH] include: Document the need to free the returned buffer Signed-off-by: Jakub Jelen Reviewed-by: Norbert Pocs (cherry picked from commit a5631280a92f810819229cbedad5fdbb1ef6cc86) --- include/libssh/sftp.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/libssh/sftp.h b/include/libssh/sftp.h index a2b4745c..c713466e 100644 --- a/include/libssh/sftp.h +++ b/include/libssh/sftp.h @@ -772,6 +772,8 @@ LIBSSH_API int sftp_symlink(sftp_session sftp, const char *target, const char *d * @param path Specifies the path name of the symlink to be read. * * @return The target of the link, NULL on error. + * The caller needs to free the memory + * using ssh_string_free_char(). * * @see sftp_get_error() */