summary refs log tree commit diff stats
path: root/src/common/outbound.c
diff options
context:
space:
mode:
authorRichardHitt <rbh00@netcom.com>2013-01-09 14:37:57 -0800
committerRichardHitt <rbh00@netcom.com>2013-01-09 14:37:57 -0800
commit6beef589e32d874e5d961e7e6f7b2a68c56538bd (patch)
treec27f129c1011d63570295117ea6cabd5e25e65f8 /src/common/outbound.c
parent285ddd0b60974bebbee6ea6168bf8d53262f6145 (diff)
Make source cleah with cppcheck, except for mpc and sasl
Diffstat (limited to 'src/common/outbound.c')
-rw-r--r--src/common/outbound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c
index a8a65d6a..f8f73dd6 100644
--- a/src/common/outbound.c
+++ b/src/common/outbound.c
@@ -1866,7 +1866,6 @@ cmd_exec (struct session *sess, char *tbuf, char *word[], char *word_eol[])
 			/* not reached unless error */
 			/*printf("exec error\n");*/
 			fflush (stdout);
-			fflush (stdin);
 			_exit (0);
 		}
 		if (pid == -1)
@@ -1876,6 +1875,7 @@ cmd_exec (struct session *sess, char *tbuf, char *word[], char *word_eol[])
 			PrintText (sess, "Error in fork(2)\n");
 			close(fds[0]);
 			close(fds[1]);
+			free (s);
 		} else
 		{
 			/* Parent path */