mirror of
https://github.com/SwallowOS/xorg_lib_libxtrans
synced 2025-12-28 04:21:04 +08:00
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>
This commit is contained in:
@@ -1703,6 +1703,7 @@ TRANS(LocalEndTransports)(void)
|
||||
{
|
||||
prmsg(3,"LocalEndTransports()\n");
|
||||
free(freeXLOCAL);
|
||||
freeXLOCAL = NULL;
|
||||
}
|
||||
|
||||
#define TYPEBUFSIZE 32
|
||||
|
||||
Reference in New Issue
Block a user