Explorar o código

Update ua_client.c

fix second memory leak : see https://github.com/acplt/open62541/issues/323
StalderT %!s(int64=9) %!d(string=hai) anos
pai
achega
e7f8f0a262
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/client/ua_client.c

+ 1 - 0
src/client/ua_client.c

@@ -881,6 +881,7 @@ UA_Boolean UA_Client_processPublishRx(UA_Client *client, UA_PublishResponse resp
                         }
                     }
                 }
+                UA_DataChangeNotification_deleteMembers(&dataChangeNotification);
             }
             else if (msg.notificationData[k].typeId.namespaceIndex == 0 && msg.notificationData[k].typeId.identifier.numeric == 820 ) {
                 //FIXME: This is a statusChangeNotification (not supported yet)