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; }