Use delete[] to free an array. This could potentially lead to memory errors depending on compiler/library implementation. Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> --- vdservice/vdservice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.7.4 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel