# # Mini Patch for TinyMUSH 2.2.3. # J. Ellis, joi.ellis@cdc.com, gyles19@nospam.visi.com 03/30/98 # # USE AT YOUR OWN RISK! # # This patch contains only the portions of the TinyMUSH 2.2.3p1 snapshot # that fix bugs in the stock distribution. It excludes the regexp # pattern matching additions. # # This patch was gleaned by diff -c comparisions of the two source # trees and some rcs tomfoolery, not by manually hacking on the p1 diffs # file. # # I've been running this patch on my own mush for months with no # problems so I don't expect there's any problem with it. # # Two bugs were fixed: # 1) A memory leak in look.c that only occured if you enabled PUEBLO; # 2) A bug in functions.c fun_lastcreate() that caused it to return # garbage or do other nasty things when fed an invalid object type. # (I'm going by memory on this one...) # *** src/functions.c 1995/03/29 02:55:13 1.12 --- src/functions.c 1998/03/31 04:01:09 *************** *** 1551,1556 **** --- 1551,1557 ---- default: notify_quiet(player, "Invalid object type."); strcpy(buff, "#-1"); + return; } if ((obj_str = atr_get(obj, A_NEWOBJS, &aowner, &aflags)) == NULL) { *** src/look.c 1995/03/21 00:00:37 1.8 --- src/look.c 1998/03/31 04:10:08 *************** *** 91,96 **** --- 91,97 ---- safe_str(buff1, buff, &e); } safe_str((char *) " ", buff, &e); + free_lbuf(buff1); } } } *************** *** 103,109 **** notify(player, buff); } free_lbuf(buff); - free_lbuf(buff1); #endif /* ! PUEBLO_SUPPORT */ } --- 104,109 ----