aboutsummaryrefslogtreecommitdiff
path: root/nuttx/sched/group_internal.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-26 21:01:19 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-26 21:01:19 +0000
commit3bec164b3ae1cd7f9b5dcec532e7d073be96d45d (patch)
tree2c5a08e4daba522a5bcc3bc41537bd8e3361da5c /nuttx/sched/group_internal.h
parent5b6482a22bb8b656e3d70a6efc5ae2c77ed2a58b (diff)
downloadpx4-firmware-3bec164b3ae1cd7f9b5dcec532e7d073be96d45d.tar.gz
px4-firmware-3bec164b3ae1cd7f9b5dcec532e7d073be96d45d.tar.bz2
px4-firmware-3bec164b3ae1cd7f9b5dcec532e7d073be96d45d.zip
Fix a recently introduced memory leak
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5568 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/group_internal.h')
-rw-r--r--nuttx/sched/group_internal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/nuttx/sched/group_internal.h b/nuttx/sched/group_internal.h
index b78b38453..39d0a2b7c 100644
--- a/nuttx/sched/group_internal.h
+++ b/nuttx/sched/group_internal.h
@@ -127,6 +127,14 @@ FAR struct child_status_s *group_removechild(FAR struct task_group_s *group,
pid_t pid);
void group_removechildren(FAR struct task_group_s *group);
+/* File/network resources */
+
+#if CONFIG_NFILE_DESCRIPTORS > 0 || CONFIG_NSOCKET_DESCRIPTORS > 0
+int group_releasefiles(FAR _TCB *tcb);
+#else
+# define group_releasefiles(t) (OK)
+#endif
+
#endif /* CONFIG_SCHED_CHILD_STATUS */
#endif /* CONFIG_SCHED_HAVE_PARENT */