From 941cfa50bc2d45f20943fd21bab98e2eceeeb259 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 25 Aug 2018 10:45:04 -0700 Subject: [PATCH] Set freeXLOCAL to NULL after freeing it to prevent double frees We shouldn't be calling the LocalEndTransports routine twice, but just make sure if we do, we don't call free twice on the same pointer. Signed-off-by: Alan Coopersmith --- Xtranslcl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Xtranslcl.c b/Xtranslcl.c index 07625e1..f21f606 100644 --- a/Xtranslcl.c +++ b/Xtranslcl.c @@ -1703,6 +1703,7 @@ TRANS(LocalEndTransports)(void) { prmsg(3,"LocalEndTransports()\n"); free(freeXLOCAL); + freeXLOCAL = NULL; } #define TYPEBUFSIZE 32