Browse Source

Update ua_client.c

fix second memory leak : see https://github.com/acplt/open62541/issues/323
StalderT 9 years ago
parent
commit
e7f8f0a262
1 changed files with 1 additions and 0 deletions
  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)