diff options
Diffstat (limited to 'sftp.c')
-rw-r--r-- | sftp.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1289,6 +1289,7 @@ interactive_loop(int fd_in, int fd_out, char *file1, char *file2) | |||
1289 | if (parse_dispatch_command(conn, cmd, &pwd, 1) != 0) { | 1289 | if (parse_dispatch_command(conn, cmd, &pwd, 1) != 0) { |
1290 | xfree(dir); | 1290 | xfree(dir); |
1291 | xfree(pwd); | 1291 | xfree(pwd); |
1292 | xfree(conn); | ||
1292 | return (-1); | 1293 | return (-1); |
1293 | } | 1294 | } |
1294 | } else { | 1295 | } else { |
@@ -1301,6 +1302,7 @@ interactive_loop(int fd_in, int fd_out, char *file1, char *file2) | |||
1301 | err = parse_dispatch_command(conn, cmd, &pwd, 1); | 1302 | err = parse_dispatch_command(conn, cmd, &pwd, 1); |
1302 | xfree(dir); | 1303 | xfree(dir); |
1303 | xfree(pwd); | 1304 | xfree(pwd); |
1305 | xfree(conn); | ||
1304 | return (err); | 1306 | return (err); |
1305 | } | 1307 | } |
1306 | xfree(dir); | 1308 | xfree(dir); |
@@ -1365,6 +1367,7 @@ interactive_loop(int fd_in, int fd_out, char *file1, char *file2) | |||
1365 | break; | 1367 | break; |
1366 | } | 1368 | } |
1367 | xfree(pwd); | 1369 | xfree(pwd); |
1370 | xfree(conn); | ||
1368 | 1371 | ||
1369 | #ifdef USE_LIBEDIT | 1372 | #ifdef USE_LIBEDIT |
1370 | if (el != NULL) | 1373 | if (el != NULL) |