[PATCH] Avoiding memory leak allocated by box.

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



Signed-off-by: krishnaiah bommu <krishnaiah.bommu@xxxxxxxxx>
---
 sshd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sshd.c b/sshd.c
index 11571c0..1f2df20 100644
--- a/sshd.c
+++ b/sshd.c
@@ -539,6 +539,7 @@ privsep_preauth(struct ssh *ssh)
 		if (box != NULL)
 			ssh_sandbox_child(box);
 
+		free(box);
 		return 0;
 	}
 }
-- 
2.7.4

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux