From ff992be7b05483f9a0586a27ee0edb6d99580b84 Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Thu, 1 Dec 2011 12:04:22 +0000 Subject: Fix some resource & memory leaks in libxtrans. Signed-off-by: Alan Hourihane Reviewed-by: Alan Coopersmith Signed-off-by: Alan Coopersmith --- Xtrans.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Xtrans.c') diff --git a/Xtrans.c b/Xtrans.c index 522e543..6973ca5 100644 --- a/Xtrans.c +++ b/Xtrans.c @@ -549,6 +549,7 @@ TRANS(Reopen) (int type, int trans_id, int fd, char *port) if (ciptr == NULL) { prmsg (1,"Reopen: transport open failed\n"); + xfree(save_port); return NULL; } -- cgit v1.2.3