summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sesman/chansrv/chansrv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sesman/chansrv/chansrv.c b/sesman/chansrv/chansrv.c
index 2d2160fc..c7ce1f48 100644
--- a/sesman/chansrv/chansrv.c
+++ b/sesman/chansrv/chansrv.c
@@ -1400,7 +1400,7 @@ get_log_path()
log_path = g_getenv("XDG_DATA_HOME");
if (log_path != 0)
{
- cp = malloc(strlen(log_path) + strlen("/xrdp") + 1);
+ cp = g_new(char, strlen(log_path) + strlen("/xrdp") + 1);
if (cp != 0)
{
@@ -1423,7 +1423,7 @@ get_log_path()
log_path = g_getenv("HOME");
if (log_path != 0)
{
- cp = malloc(strlen(log_path) + strlen("/.local/share/xrdp") + 1);
+ cp = g_new(char, strlen(log_path) + strlen("/.local/share/xrdp") + 1);
if (cp != 0)
{