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>
(cherry picked from commit 72e91d5131)
This commit is contained in:
Andreas Schneider
2018-09-03 17:57:27 +02:00
parent 0b2072dd30
commit eaae8ce086

View File

@@ -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);
}