[PATCH 8/8] hyperv: call openwsman's ws_serializer_free_mem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This should have been included with the upgrade to openwsman 2.6.3.

Signed-off-by: Matt Coleman <matt@xxxxxxxxx>
---
 src/hyperv/hyperv_wmi.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/src/hyperv/hyperv_wmi.c b/src/hyperv/hyperv_wmi.c
index f2c7c365fa..1d0d33ec6d 100644
--- a/src/hyperv/hyperv_wmi.c
+++ b/src/hyperv/hyperv_wmi.c
@@ -41,8 +41,6 @@
 #include "virlog.h"
 #include "virxml.h"
 
-#define WS_SERIALIZER_FREE_MEM_WORKS 0
-
 #define VIR_FROM_THIS VIR_FROM_HYPERV
 
 #define HYPERV_JOB_TIMEOUT_MS 300000
@@ -1120,12 +1118,10 @@ hypervEnumAndPull(hypervPrivate *priv, hypervWqlQueryPtr wqlQuery,
         filter_destroy(filter);
 
     if (data != NULL) {
-#if WS_SERIALIZER_FREE_MEM_WORKS
         if (ws_serializer_free_mem(serializerContext, data,
                                    wmiInfo->serializerInfo) < 0) {
             VIR_ERROR(_("Could not free deserialized data"));
         }
-#endif
     }
 
     VIR_FREE(query_string);
@@ -1141,26 +1137,20 @@ void
 hypervFreeObject(hypervPrivate *priv G_GNUC_UNUSED, hypervObject *object)
 {
     hypervObject *next;
-#if WS_SERIALIZER_FREE_MEM_WORKS
     WsSerializerContextH serializerContext;
-#endif
 
     if (object == NULL)
         return;
 
-#if WS_SERIALIZER_FREE_MEM_WORKS
     serializerContext = wsmc_get_serialization_context(priv->client);
-#endif
 
     while (object != NULL) {
         next = object->next;
 
-#if WS_SERIALIZER_FREE_MEM_WORKS
         if (ws_serializer_free_mem(serializerContext, object->data.common,
                                    object->info->serializerInfo) < 0) {
             VIR_ERROR(_("Could not free deserialized data"));
         }
-#endif
 
         VIR_FREE(object);
 
-- 
2.27.0





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux