diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2024-11-24 19:10:50 -0800 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2024-11-24 19:10:50 -0800 |
commit | 46ca327cc4af2f828c8e4c5da7929f22954f5be3 (patch) | |
tree | 570a5181e0439be267578dd71a4390249834a9d7 | |
parent | 7901e100d7ab889caf495e7dcab39b16ea86a4b1 (diff) |
clean
-rw-r--r-- | remote_plot.c | 8 |
1 files changed, 0 insertions, 8 deletions
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"); } |