summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/vdagentd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vdagentd.c b/src/vdagentd.c
index 0cb7f1e..291e4e3 100644
--- a/src/vdagentd.c
+++ b/src/vdagentd.c
@@ -559,6 +559,7 @@ void agent_read_complete(struct udscs_connection **connp,
fprintf(logfile,
"guest xorg resolution message has wrong size, disconnecting agent\n");
udscs_destroy_connection(connp);
+ free(data);
return;
}
@@ -573,6 +574,7 @@ void agent_read_complete(struct udscs_connection **connp,
case VDAGENTD_CLIPBOARD_RELEASE:
if (do_agent_clipboard(*connp, header, data)) {
udscs_destroy_connection(connp);
+ free(data);
return;
}
break;