Selaa lähdekoodia

fixing a memleak, relates to #253

Stasik0 10 vuotta sitten
vanhempi
commit
3a6906c9ad
1 muutettua tiedostoa jossa 0 lisäystä ja 2 poistoa
  1. 0 2
      src/server/ua_subscription.c

+ 0 - 2
src/server/ua_subscription.c

@@ -196,8 +196,6 @@ void Subscription_copyTopNotificationMessage(UA_NotificationMessage *dst, UA_Sub
     dst->notificationData = (UA_ExtensionObject *) UA_malloc(sizeof(UA_ExtensionObject));
     dst->notificationData->encoding = latest->notificationData->encoding;
     dst->notificationData->typeId   = latest->notificationData->typeId;
-    dst->notificationData->body.length = latest->notificationData->body.length;
-    dst->notificationData->body.data   = UA_malloc(latest->notificationData->body.length);
     UA_ByteString_copy((UA_String *) &(latest->notificationData->body),
                        (UA_String *) &(dst->notificationData->body));
 }