aboutsummaryrefslogtreecommitdiff
path: root/nuttx/sched/env_release.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-12-16 21:15:27 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-12-16 21:15:27 +0000
commit14a896b20509dfc4657778fa21246cffb2ec2b55 (patch)
tree966aa2197272d9b52e3e25177cd78cea2751ade2 /nuttx/sched/env_release.c
parent8fc05d82fc7e1258cff333dcdebfb718820d0d48 (diff)
downloadpx4-firmware-14a896b20509dfc4657778fa21246cffb2ec2b55.tar.gz
px4-firmware-14a896b20509dfc4657778fa21246cffb2ec2b55.tar.bz2
px4-firmware-14a896b20509dfc4657778fa21246cffb2ec2b55.zip
Add basic hooks to support a PATH variable (more is needed)
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5440 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/env_release.c')
-rw-r--r--nuttx/sched/env_release.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/sched/env_release.c b/nuttx/sched/env_release.c
index 83e65dbb5..8bc8d2205 100644
--- a/nuttx/sched/env_release.c
+++ b/nuttx/sched/env_release.c
@@ -94,11 +94,11 @@ int env_release(FAR _TCB *ptcb)
{
/* Check the reference count on the environment structure */
- if ( envp->ev_crefs <= 1)
+ if (envp->ev_crefs <= 1)
{
/* Decrementing the reference count will destroy the environment */
- sched_free( envp ); /* plain free() should be fine here */
+ sched_free(envp);
}
else
{