mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +03:00
channels: Remove memset in ssh_channel_do_free()
We have nice tools to detect that in the meantime. Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
@@ -1024,8 +1024,6 @@ void ssh_channel_do_free(ssh_channel channel)
|
||||
ssh_list_free(channel->callbacks);
|
||||
}
|
||||
|
||||
/* debug trick to catch use after frees */
|
||||
memset(channel, 'X', sizeof(struct ssh_channel_struct));
|
||||
SAFE_FREE(channel);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user