diff --git a/src/pubsub/ua_pubsub_reader.c b/src/pubsub/ua_pubsub_reader.c index 9ef9449f217..07273d40236 100644 --- a/src/pubsub/ua_pubsub_reader.c +++ b/src/pubsub/ua_pubsub_reader.c @@ -1194,7 +1194,8 @@ UA_ReaderGroup_decodeAndProcessRT(UA_Server *server, UA_ReaderGroup *readerGroup memset(matches, 0, sizeof(UA_Boolean)* readerGroup->readersCount); /* Pacify warning */ #endif - /* Decode headers necessary for checking identifier */ + /* Decode headers necessary for checking identifier. This can use malloc. + * So enable membufAlloc if you need RT timings. */ UA_NetworkMessage currentNetworkMessage; memset(¤tNetworkMessage, 0, sizeof(UA_NetworkMessage)); UA_StatusCode rv = UA_NetworkMessage_decodeHeaders(buf, &pos, ¤tNetworkMessage);