Oh man, pointers and memory management are fun!
C has some performance benefits over Java, which maybe why this database was written in that language, but I doubt it. Probably just something carried over. As Jorren suggested, you could make it your project to update to a more recent...