summaryrefslogtreecommitdiff
path: root/Xtranslcl.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2018-08-25 10:45:04 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2018-08-25 10:45:49 -0700
commit941cfa50bc2d45f20943fd21bab98e2eceeeb259 (patch)
tree5bc1a440112c0be61eb62b3dd1077f8f9768e943 /Xtranslcl.c
parenta97e5fc6e4f294294d75500068892aea11952773 (diff)
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 <alan.coopersmith@oracle.com>
Diffstat (limited to 'Xtranslcl.c')
-rw-r--r--Xtranslcl.c1
1 files changed, 1 insertions, 0 deletions
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