projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Update snapshot(2017-12-06)
[platform/upstream/iotivity.git]
/
service
/
notification
/
src
/
consumer
/
NSConsumerMQPlugin.c
diff --git
a/service/notification/src/consumer/NSConsumerMQPlugin.c
b/service/notification/src/consumer/NSConsumerMQPlugin.c
index
b59fc46
..
92ce709
100644
(file)
--- a/
service/notification/src/consumer/NSConsumerMQPlugin.c
+++ b/
service/notification/src/consumer/NSConsumerMQPlugin.c
@@
-140,6
+140,13
@@
OCStackApplicationResult NSConsumerIntrospectMQTopic(
}
}
+ // Free topicList
+ size_t count = calcDimTotal(dimensions);
+ for (size_t k = 0; k < count; k++)
+ {
+ OICFree(topicList[k]);
+ }
+ OICFree(topicList);
return OC_STACK_KEEP_TRANSACTION;
}