Patch for double free error in btQuickprof