diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2019-02-27 08:32:10 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-02-27 08:34:36 +0100 |
commit | be73335f8e1b8021009ca11d16dd446a0dcc7603 (patch) | |
tree | a8898d0cafdf5f76eda21f638224e7d4aac4e315 | |
parent | 52986115b8b75e11ab21571e71b40af835bdb49c (diff) | |
download | libssh-be73335f8e1b8021009ca11d16dd446a0dcc7603.tar.gz libssh-be73335f8e1b8021009ca11d16dd446a0dcc7603.tar.xz libssh-be73335f8e1b8021009ca11d16dd446a0dcc7603.zip |
sftp: Document how to free memory retruned by sftp_canonicalize_path()
Fixes T129
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 7c444c09d7bdba1f0409ea8f874ccd283f2daa52)
-rw-r--r-- | include/libssh/sftp.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/libssh/sftp.h b/include/libssh/sftp.h index 21512bce..3750e0c6 100644 --- a/include/libssh/sftp.h +++ b/include/libssh/sftp.h @@ -818,7 +818,9 @@ LIBSSH_API int sftp_fsync(sftp_file file); * * @param path The path to be canonicalized. * - * @return The canonicalize path, NULL on error. + * @return A pointer to the newly allocated canonicalized path, + * NULL on error. The caller needs to free the memory + * using ssh_string_free_char(). */ LIBSSH_API char *sftp_canonicalize_path(sftp_session sftp, const char *path); |