X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=yaffs_guts.c;h=9517550b20f8f78c3c0163d64e054d60a518635c;hb=0968b5bdc99a0334e9aecc5a3a6f8b6d54b012a1;hp=0dc9622a6ec34ce013742cda6555a242160a7b6a;hpb=96aed5b90237cda3b8168a957be33c83ae192794;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);