Blame SOURCES/0001-qga-vss-Use-a-proper-function-for-free-memory.patch
|
|
7d7405 |
From 4ee7074cdf48e77886637e12f148e267329978d3 Mon Sep 17 00:00:00 2001
|
|
|
7d7405 |
From: Konstantin Kostiuk <kkostiuk@redhat.com>
|
|
|
7d7405 |
Date: Thu, 12 May 2022 15:43:37 +0000
|
|
|
7d7405 |
Subject: [PATCH] qga-vss: Use a proper function for free memory
|
|
|
7d7405 |
|
|
|
7d7405 |
volume_name_wchar is allocated by 'void* operator new [](long long unsigned int)
|
|
|
7d7405 |
|
|
|
7d7405 |
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
|
|
|
7d7405 |
---
|
|
|
7d7405 |
qga/vss-win32/requester.cpp | 4 ++--
|
|
|
7d7405 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
7d7405 |
|
|
|
7d7405 |
diff --git a/qga/vss-win32/requester.cpp b/qga/vss-win32/requester.cpp
|
|
|
7d7405 |
index 4513324dd2..b371affeab 100644
|
|
|
7d7405 |
--- a/qga/vss-win32/requester.cpp
|
|
|
7d7405 |
+++ b/qga/vss-win32/requester.cpp
|
|
|
7d7405 |
@@ -354,12 +354,12 @@ void requester_freeze(int *num_vols, void *mountpoints, ErrorSet *errset)
|
|
|
7d7405 |
if (FAILED(hr)) {
|
|
|
7d7405 |
err_set(errset, hr, "failed to add %S to snapshot set",
|
|
|
7d7405 |
volume_name_wchar);
|
|
|
7d7405 |
- delete volume_name_wchar;
|
|
|
7d7405 |
+ delete[] volume_name_wchar;
|
|
|
7d7405 |
goto out;
|
|
|
7d7405 |
}
|
|
|
7d7405 |
num_mount_points++;
|
|
|
7d7405 |
|
|
|
7d7405 |
- delete volume_name_wchar;
|
|
|
7d7405 |
+ delete[] volume_name_wchar;
|
|
|
7d7405 |
}
|
|
|
7d7405 |
|
|
|
7d7405 |
if (num_mount_points == 0) {
|
|
|
7d7405 |
--
|
|
|
7d7405 |
2.25.1
|