From 4d58590927679e51343e73c456abf7a3fc821bab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Wed, 4 Dec 1996 18:32:36 -0800 Subject: [PATCH] bugfixes Rev: src/builtin_functions.c:1.17 Rev: src/multiset.c:1.3 --- src/builtin_functions.c | 4 ++-- src/multiset.c | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/builtin_functions.c b/src/builtin_functions.c index 4533f770d3..b68fbdd0c8 100644 --- a/src/builtin_functions.c +++ b/src/builtin_functions.c @@ -4,7 +4,7 @@ ||| See the files COPYING and DISCLAIMER for more information. \*/ #include "global.h" -RCSID("$Id: builtin_functions.c,v 1.16 1996/12/05 00:47:11 hubbe Exp $"); +RCSID("$Id: builtin_functions.c,v 1.17 1996/12/05 02:32:35 hubbe Exp $"); #include "interpret.h" #include "svalue.h" #include "macros.h" @@ -1483,7 +1483,7 @@ void f__memory_usage(INT32 args) count_memory_in_objects(&num, &size); push_text("num_objects"); push_int(num); - push_text("object_bytees"); + push_text("object_bytes"); push_int(size); count_memory_in_callbacks(&num, &size); diff --git a/src/multiset.c b/src/multiset.c index ae6c32c87f..24b959a8ac 100644 --- a/src/multiset.c +++ b/src/multiset.c @@ -53,10 +53,13 @@ void really_free_multiset(struct multiset *l) free_array(l->ind); - if(l->prev) l->prev->next = l->next; - if(l->next) l->next->prev = l->prev; - if(first_multiset == l) first_multiset = 0; + if(l->prev) + l->prev->next = l->next; + else + first_multiset = l->next; + if(l->next) l->next->prev = l->prev; + free((char *)l); GC_FREE(); } -- GitLab