From e7892b0b7f935a7a5b4bf0b7c5f0657bcb2b57b6 Mon Sep 17 00:00:00 2001 From: Li Zefan Date: Fri, 13 Jun 2008 11:09:16 +0800 Subject: [PATCH] --- yaml --- r: 104772 b: refs/heads/master c: 185000fc556372b7fb7f26516c325f212030dbd3 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/samples/kobject/kset-example.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index d7ce3ba0ac71..caf225314687 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a231934bdf086a4fefc0df06e669499125a9db6f +refs/heads/master: 185000fc556372b7fb7f26516c325f212030dbd3 diff --git a/trunk/samples/kobject/kset-example.c b/trunk/samples/kobject/kset-example.c index b0a1b4fe6584..7395c0bbae18 100644 --- a/trunk/samples/kobject/kset-example.c +++ b/trunk/samples/kobject/kset-example.c @@ -211,7 +211,7 @@ static struct foo_obj *create_foo_obj(const char *name) */ retval = kobject_init_and_add(&foo->kobj, &foo_ktype, NULL, "%s", name); if (retval) { - kfree(foo); + kobject_put(&foo->kobj); return NULL; }