summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Toso <victortoso@redhat.com>2015-09-15 10:23:06 +0200
committerVictor Toso <victortoso@redhat.com>2015-09-15 10:23:06 +0200
commitf97751faf0f5c66ec5ccbf5547ca7982d360cbf9 (patch)
treea744133424e69a151b1b00c85fb35567950e7296
parent13a447852195e9f0cf01098c658df7b0be57a8af (diff)
Revert "uinput: fix small leak of screen_info"
This reverts commit 4835df0b642dfc963e7cbaabfe93da86482f0b93. uinput only holds reference to screen_info and should not free it. The leak should be fixed somewhere else. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1262635
-rw-r--r--src/vdagentd-uinput.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/vdagentd-uinput.c b/src/vdagentd-uinput.c
index 1ce9918..47e1b45 100644
--- a/src/vdagentd-uinput.c
+++ b/src/vdagentd-uinput.c
@@ -76,10 +76,6 @@ void vdagentd_uinput_destroy(struct vdagentd_uinput **uinputp)
if (uinput->fd != -1)
close(uinput->fd);
-
- if (uinput->screen_info != NULL)
- free(uinput->screen_info);
-
free(uinput);
*uinputp = NULL;
}