File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*******************************************************************************
2
- * Copyright (c) 2017, 2020 IBM Corp. and others
2
+ * Copyright (c) 2017, 2023 IBM Corp. and others
3
3
*
4
4
* All rights reserved. This program and the accompanying materials
5
5
* are made available under the terms of the Eclipse Public License v2.0
@@ -127,7 +127,10 @@ typedef struct MQTTProperties
127
127
int MQTTProperties_len (MQTTProperties * props );
128
128
129
129
/**
130
- * Add a property pointer to the property array. There is no memory allocation.
130
+ * Add a property pointer to the property array. Memory is allocated in this function,
131
+ * so MQTTClient_create or MQTTAsync_create must be called first to initialize the
132
+ * internal heap tracking. Alternatively MQTTAsync_global_init() can be called first
133
+ * or build with the HIGH_PERFORMANCE option which disables the heap tracking.
131
134
* @param props The property list to add the property to.
132
135
* @param prop The property to add to the list.
133
136
* @return 0 on success, -1 on failure.
You can’t perform that action at this time.
0 commit comments