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>
Этот коммит содержится в:
родитель
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);
|
||||
}
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user