summaryrefslogtreecommitdiff
path: root/libobjc/selector.c
diff options
context:
space:
mode:
Diffstat (limited to 'libobjc/selector.c')
-rw-r--r--libobjc/selector.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libobjc/selector.c b/libobjc/selector.c
index 11f75f0462e..06743b03ff4 100644
--- a/libobjc/selector.c
+++ b/libobjc/selector.c
@@ -148,6 +148,8 @@ void __objc_register_instance_methods_to_class (Class class)
new_list->method_next = class->class_pointer->methods;
class->class_pointer->methods = new_list;
}
+ else
+ objc_free(new_list);
__objc_update_dispatch_table_for_class (class->class_pointer);
}