summaryrefslogtreecommitdiff
path: root/sftp.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-03-26 13:51:44 +1100
committerDamien Miller <djm@mindrot.org>2006-03-26 13:51:44 +1100
commite0b90a676696c6729467837f6f4030d18999aa34 (patch)
treece5880f1f1ace63042d2d575c064d311dcfde9c8 /sftp.c
parent6f98a1fea710ab2dae0342f9a3cee8f01372b666 (diff)
- djm@cvs.openbsd.org 2006/03/19 02:22:56
[sftp.c] more memory leaks detected by Coverity via elad AT netbsd.org; deraadt@ ok
Diffstat (limited to 'sftp.c')
-rw-r--r--sftp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sftp.c b/sftp.c
index d676a3771..194d22710 100644
--- a/sftp.c
+++ b/sftp.c
@@ -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)