mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-27 13:21:11 +03:00
src: Do not use deprecated functions.
This commit is contained in:
@@ -998,7 +998,7 @@ static sftp_attributes sftp_parse_attr_4(sftp_session sftp, ssh_buffer buf,
|
||||
break;
|
||||
}
|
||||
attr->owner = ssh_string_to_char(owner);
|
||||
string_free(owner);
|
||||
ssh_string_free(owner);
|
||||
if (attr->owner == NULL) {
|
||||
break;
|
||||
}
|
||||
@@ -1008,7 +1008,7 @@ static sftp_attributes sftp_parse_attr_4(sftp_session sftp, ssh_buffer buf,
|
||||
break;
|
||||
}
|
||||
attr->group = ssh_string_to_char(group);
|
||||
string_free(group);
|
||||
ssh_string_free(group);
|
||||
if (attr->group == NULL) {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user