From 46ca327cc4af2f828c8e4c5da7929f22954f5be3 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Sun, 24 Nov 2024 19:10:50 -0800 Subject: clean --- remote_plot.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'remote_plot.c') diff --git a/remote_plot.c b/remote_plot.c index ff2f888..cc9b164 100644 --- a/remote_plot.c +++ b/remote_plot.c @@ -300,11 +300,8 @@ int main() exit(-1); } - //... - printf("a\n"); sftp = sftp_new(my_ssh_session); - printf("b\n"); if (sftp == NULL) { fprintf(stderr, "Error allocating SFTP session: %s\n", @@ -313,7 +310,6 @@ int main() } rc = sftp_init(sftp); - printf("c\n"); if (rc != SSH_OK) { fprintf(stderr, "Error initializing SFTP session: code %d.\n", @@ -324,12 +320,8 @@ int main() sftp_read_sync(my_ssh_session,sftp); - printf("d\n"); ssh_disconnect(my_ssh_session); - printf("e\n"); ssh_free(my_ssh_session); - printf("f\n"); // Segmentation fault (core dumped) error, why? maybe double free? so no free is ok? //sftp_free(sftp); - printf("g\n"); } -- cgit v1.2.3-70-g09d2