summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoichiro IWAO <meta@vmeta.jp>2017-07-18 10:04:54 +0900
committermetalefty <meta@vmeta.jp>2017-08-01 08:40:30 +0900
commitdf32f74519b83e327d0fa500adec2e17b9d51070 (patch)
treef71a8ef35d83bd651e8a9427da8e6c27c21e8b7c
parent04187945a8abc17f68daeda6b41b21ba8d174ab2 (diff)
downloadxrdp-proprietary-df32f74519b83e327d0fa500adec2e17b9d51070.tar.gz
xrdp-proprietary-df32f74519b83e327d0fa500adec2e17b9d51070.zip
use g_free()
-rw-r--r--xrdp/xrdp_login_wnd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xrdp/xrdp_login_wnd.c b/xrdp/xrdp_login_wnd.c
index ee9ad7f7..66aaf425 100644
--- a/xrdp/xrdp_login_wnd.c
+++ b/xrdp/xrdp_login_wnd.c
@@ -376,7 +376,7 @@ xrdp_wm_show_edits(struct xrdp_wm *self, struct xrdp_bitmap *combo)
plain = (char *)g_malloc(base64_length, 0);
base64_decode(plain, value + 8, base64_length);
g_strncpy(value, plain, g_strlen(plain));
- free(plain);
+ g_free(plain);
}
else if (g_strncmp("ask", value, 3) == 0)
{
@@ -418,7 +418,7 @@ xrdp_wm_show_edits(struct xrdp_wm *self, struct xrdp_bitmap *combo)
plain = (char *)g_malloc(base64_length, 0);
base64_decode(plain, value + 3 + 8, base64_length);
g_strncpy(b->caption1, plain, 255);
- free(plain);
+ g_free(plain);
}
else
{