changeset 317:f40179482d41

Fix low-mem issue
author charles <charles>
date Wed, 11 Nov 2009 01:40:41 +0000
parents 528ef26f7822
children 97933d0faed0
files yaffs_guts.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/yaffs_guts.c
+++ b/yaffs_guts.c
@@ -12,7 +12,7 @@
  */
 
 const char *yaffs_guts_c_version =
-    "$Id: yaffs_guts.c,v 1.94 2009-11-10 23:55:05 charles Exp $";
+    "$Id: yaffs_guts.c,v 1.95 2009-11-11 01:40:41 charles Exp $";
 
 #include "yportenv.h"
 
@@ -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);