From 040c3a3327d6953ea272172f717d4e11dd3533ab Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Sat, 26 Dec 2015 16:07:51 -0800 Subject: [PATCH] don't use g_free in xrdpapi --- xrdpapi/xrdpapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xrdpapi/xrdpapi.c b/xrdpapi/xrdpapi.c index 7e9eaa0c..cd343e75 100644 --- a/xrdpapi/xrdpapi.c +++ b/xrdpapi/xrdpapi.c @@ -126,7 +126,7 @@ WTSVirtualChannelOpenEx(unsigned int SessionId, const char *pVirtualName, /* we use unix domain socket to communicate with chansrv */ if ((wts->fd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) { - g_free(wts); + free(wts); return NULL; }