前回のソース:(http://d.hatena.ne.jp/studiokingyo/20050321)にメモリリー クがあったので修正版をのっけておきます。 ちなみに原因はlogic部ではなくmainから抜ける時にdeleteNodeで最後までメモリ開放していないためです。 /* The below red-black tree implementation of was written by Thomas Niemann and is available on his algorithm collection webpages. This code is not subject to copyright restrictions. */ /* red-black tree */ #include <stdio.h> #include <stdlib.h> #include <strin