diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-09-28 18:24:00 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-09-28 18:24:00 +0000 |
commit | 33905b7161123f75fae970bc5be4b8f2854dfbee (patch) | |
tree | 7f1eee43dd2055b12a38975cdf88d7832e6f553f /nuttx/fs | |
parent | 6cdcf5a87d0490f4cc30bc604acb649b7fb49183 (diff) | |
download | px4-nuttx-33905b7161123f75fae970bc5be4b8f2854dfbee.tar.gz px4-nuttx-33905b7161123f75fae970bc5be4b8f2854dfbee.tar.bz2 px4-nuttx-33905b7161123f75fae970bc5be4b8f2854dfbee.zip |
Fix NXFFS compilation error
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3990 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs')
-rw-r--r-- | nuttx/fs/nxffs/nxffs_initialize.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nuttx/fs/nxffs/nxffs_initialize.c b/nuttx/fs/nxffs/nxffs_initialize.c index 7fd1d51fc..0fa879f75 100644 --- a/nuttx/fs/nxffs/nxffs_initialize.c +++ b/nuttx/fs/nxffs/nxffs_initialize.c @@ -280,7 +280,9 @@ errout_with_buffer: errout_with_cache: kfree(volume->cache); errout_with_volume: +#ifndef CONFIG_NXFSS_PREALLOCATED kfree(volume); +#endif return ret; } |