X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=yaffs_guts.c;h=9517550b20f8f78c3c0163d64e054d60a518635c;hb=5735c2f731407e26a216f05949b5f9a361aa36fe;hp=0dc9622a6ec34ce013742cda6555a242160a7b6a;hpb=91bb3ebe47702628984f732f30468404e86233a2;p=yaffs2.git 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);