summaryrefslogtreecommitdiff
path: root/libobjc
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-15 01:49:41 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-15 01:49:41 +0000
commit7ac2c97c6bfb473f0ace1b0ce18168dcdf65056d (patch)
treee5f2a571d66f1d32d3f8bc98591d352a1b38bc62 /libobjc
parent4c2329962fd39e056892e797dfa6efcbcd1d64a4 (diff)
downloadgcc-7ac2c97c6bfb473f0ace1b0ce18168dcdf65056d.tar.gz
2004-01-14 Adam Fedor <fedor@gnu.org>
PR libobjc/12155 * selector.c (__objc_register_instance_methods_to_class): Free new_list if not used. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75899 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc')
-rw-r--r--libobjc/ChangeLog6
-rw-r--r--libobjc/selector.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/libobjc/ChangeLog b/libobjc/ChangeLog
index b9913926b74..069a1f9dc51 100644
--- a/libobjc/ChangeLog
+++ b/libobjc/ChangeLog
@@ -1,3 +1,9 @@
+2004-01-14 Adam Fedor <fedor@gnu.org>
+
+ PR libobjc/12155
+ * selector.c (__objc_register_instance_methods_to_class): Free
+ new_list if not used.
+
2004-01-09 Andrew Ruder <aeruder@ksu.edu>
PR libobjc/11904
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);
}