[Spice-commits] vdservice/vdservice.cpp
Frediano Ziglio
fziglio at kemper.freedesktop.org
Fri Aug 12 14:36:12 UTC 2016
vdservice/vdservice.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 724635e1f357282779cba331e5307a8eec909691
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Thu Aug 11 16:28:22 2016 +0100
Use proper delete for _events member
Use delete[] to free an array.
This could potentially lead to memory errors depending
on compiler/library implementation.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Victor Toso <victortoso at redhat.com>
diff --git a/vdservice/vdservice.cpp b/vdservice/vdservice.cpp
index 89e0dbb..12f7644 100644
--- a/vdservice/vdservice.cpp
+++ b/vdservice/vdservice.cpp
@@ -145,7 +145,7 @@ VDService::~VDService()
{
CloseHandle(_agent_stop_event);
CloseHandle(_control_event);
- delete _events;
+ delete[] _events;
delete _log;
}
More information about the Spice-commits
mailing list