diff options
Diffstat (limited to 'libssh/string.c')
-rw-r--r-- | libssh/string.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libssh/string.c b/libssh/string.c index 0a036adf..394179fc 100644 --- a/libssh/string.c +++ b/libssh/string.c @@ -143,6 +143,15 @@ char *ssh_string_to_char(struct ssh_string_struct *s) { } /** + * @brief Deallocate a char string object. + * + * @param[in] s The string to delete. + */ +void ssh_string_free_char(char *s) { + SAFE_FREE(s); +} + +/** * @brief Copy a string, return a newly allocated string. The caller has to * free the string. * |