On Tue, 30 Sep 1997, Akuma/Chris Baggett/DOOMer wrote:
>well, i went back looking through medit.c in the
>medit_save_internally() part,
>and i got to wondering.
>instead of just FREEing the old memory,
>why not REALLOC it to the new size, thereby
>saving the free(mob_index); trouble?
My immediate thoughts on the matter are:
1) Memory location could move.
2) Might not be able to make that big a block.
Haven't really thought about the consequences though, you could go try it
and see what happens... :)
>my question on this, though, is :
> Has anyone tried this, and KNOW if it works or not?
>because i STILL get crashes on the Mob_index freeing part,
>and i can't seem to figure out why (i have a few ideas, but i need sleep).
With which patch/OS? I fixed the Solaris problem (I believe) a few patches
ago and Linux/AIX/others a couple before that.
--
George Greer - Me@Null.net | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST