From 0968b5bdc99a0334e9aecc5a3a6f8b6d54b012a1 Mon Sep 17 00:00:00 2001 From: charles Date: Wed, 11 Nov 2009 01:40:41 +0000 Subject: [PATCH] Fix low-mem issue --- yaffs_guts.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/yaffs_guts.c b/yaffs_guts.c index 0dc9622..9517550 100644 --- 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(yaffs_ObjectType type, 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); -- 2.30.2