MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / Bfree

Function Bfree

strings/dtoa.c:697–712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

695*/
696
697static void Bfree(Bigint *v, Stack_alloc *alloc)
698{
699 char *gptr= (char*) v; /* generic pointer */
700 if (gptr < alloc->begin || gptr >= alloc->end)
701 free(gptr);
702 else if (v->k <= Kmax)
703 {
704 /*
705 Maintain free lists only for stack objects: this way we don't
706 have to bother with freeing lists in the end of dtoa;
707 heap should not be used normally anyway.
708 */
709 v->p.next= alloc->freelist[v->k];
710 alloc->freelist[v->k]= v;
711 }
712}
713
714
715/*

Callers 5

multaddFunction · 0.85
pow5multFunction · 0.85
lshiftFunction · 0.85
my_strtod_intFunction · 0.85
dtoaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected