* Replaced all instances of malloc with calloc

* Replaced magic number in tvm_htab.c with define