1
1

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>
Этот коммит содержится в:
Andreas Schneider 2018-09-03 17:57:27 +02:00
родитель 4af4b59e21
Коммит 72e91d5131

Просмотреть файл

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