Hi, On Mon, 28 Apr 2008, tsgates wrote: > malloc_hook( size ) { > void * rtn = malloc( size ) > if ( rtn ) { > add_to_mem_record( thread_id, rtn ) > } > } > > free_hook( ptr ) { > if ( free( ptr ) ) { > del_mem_record( thread_id, ptr ) > } > } > > clean_mem() { > for_each ( mem_records ) > free( ptr ) > } This is not enough. We have quite some static variables which point directly or indirectly to these allocated regions. I think you'd need to implement some resetter functions if you were to libify libgit.a. The easier way would definitely be to go with libgit-thin, as Jakub suggested. Ciao, Dscho -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html