summaryrefslogtreecommitdiffstats
path: root/x11vnc/macosx.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/macosx.c')
-rw-r--r--x11vnc/macosx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/x11vnc/macosx.c b/x11vnc/macosx.c
index b3cff79..4b13528 100644
--- a/x11vnc/macosx.c
+++ b/x11vnc/macosx.c
@@ -241,6 +241,7 @@ char *macosx_console_guess(char *str, int *fd) {
q = (char *) malloc(strlen("map:macosx:") + strlen(file) + 1 + strlen(atparms) + 1);
sprintf(q, "map:macosx:%s@%s", file, atparms);
+ free(atparms);
return q;
}
OpenPOWER on IntegriCloud