aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--makefiles/config_px4fmu-v2_test.mk1
-rw-r--r--src/modules/uORB/uORB.cpp6
2 files changed, 6 insertions, 1 deletions
diff --git a/makefiles/config_px4fmu-v2_test.mk b/makefiles/config_px4fmu-v2_test.mk
index bc6723e5f..91fc2a751 100644
--- a/makefiles/config_px4fmu-v2_test.mk
+++ b/makefiles/config_px4fmu-v2_test.mk
@@ -32,6 +32,7 @@ MODULES += systemcmds/tests
MODULES += systemcmds/nshterm
MODULES += systemcmds/mtd
MODULES += systemcmds/ver
+MODULES += systemcmds/top
#
# Testing modules
diff --git a/src/modules/uORB/uORB.cpp b/src/modules/uORB/uORB.cpp
index cfea12f04..c4de996bb 100644
--- a/src/modules/uORB/uORB.cpp
+++ b/src/modules/uORB/uORB.cpp
@@ -641,9 +641,13 @@ ORBDevMaster::ioctl(struct file *filp, int cmd, unsigned long arg)
if (ret != OK) {
delete node;
free((void *)objname);
+ free((void *)devpath);
}
- } while (ret != OK && (group_tries++ < max_group_tries));
+ /* try with next larger index */
+ group_tries++;
+
+ } while (ret != OK && (group_tries < max_group_tries));
if (group_tries >= max_group_tries) {
ret = -ENOMEM;