Explorar o código

Update ua_client.c

fix mem leak replace patch-5
StalderT %!s(int64=9) %!d(string=hai) anos
pai
achega
8865718265
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

@@ -821,6 +821,7 @@ UA_StatusCode UA_Client_unMonitorItemChanges(UA_Client *client, UA_UInt32 subscr
     
     if (retval == 0) {
         LIST_REMOVE(mon, listEntry);
+        UA_NodeId_deleteMembers(&mon->monitoredNodeId);
         UA_free(mon);
     }