Browse Source

Update ua_client.c

fix mem leak replace patch-5
StalderT 9 years ago
parent
commit
8865718265
1 changed files with 1 additions and 0 deletions
  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);
     }