Explorar el Código

Update ua_client.c

fix mem leak replace patch-5
StalderT hace 9 años
padre
commit
8865718265
Se han modificado 1 ficheros con 1 adiciones y 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);
     }