X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCbitv.c;h=987d5bef26575bbca758de62655e4f927bff7870;hb=3bd25d75bcad68055bb616dcc29dde8a2965965e;hp=da8c692a0ea4a4e3859a801e4b60d29149a53975;hpb=5df1b9a579235d42fcec8a8884808334ed99a246;p=fw%2Fsdcc diff --git a/src/SDCCbitv.c b/src/SDCCbitv.c index da8c692a..987d5bef 100644 --- a/src/SDCCbitv.c +++ b/src/SDCCbitv.c @@ -49,6 +49,19 @@ newBitVect (int size) return bvp; } +/*-----------------------------------------------------------------*/ +/* freeBitVect - frees the memory used by the bitVector */ +/*-----------------------------------------------------------------*/ +void +freeBitVect (bitVect * bvp) +{ + if (!bvp) + return; + + Safe_free (bvp->vect); + Safe_free (bvp); +} + /*-----------------------------------------------------------------*/ /* bitVectResize - changes the size of a bit vector */ /*-----------------------------------------------------------------*/