From: charles Date: Wed, 11 Nov 2009 01:40:41 +0000 (+0000) Subject: Fix low-mem issue X-Git-Tag: pre-name-change~170 X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=commitdiff_plain;h=0968b5bdc99a0334e9aecc5a3a6f8b6d54b012a1 Fix low-mem issue --- 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);