changeset 350:cc31d3d1ea89

Fix low-mem issue
author charles
date Wed, 11 Nov 2009 01:40:41 +0000
parents 7cde5329c4de
children 4e907d62fd56
files yaffs_guts.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/yaffs_guts.c
+++ b/yaffs_guts.c
@@ -2290,10 +2290,8 @@ static yaffs_Object *yaffs_MknodObject(y
 
 	if (type == YAFFS_OBJECT_TYPE_SYMLINK) {
 		str = yaffs_CloneString(aliasString);
-		if (!str) {
-			yaffs_FreeObject(in);
+		if (!str)
 			return NULL;
-		}
 	}
 
 	in = yaffs_CreateNewObject(dev, -1, type);