diff DblHist.c @ 15:32489b8b763c

added MC_shared brch
author Me@portablequad
date Sat, 11 Feb 2012 19:20:37 -0800
parents 1fbaedaac2c7
children f4d96eaf374a
line diff
     1.1 --- a/DblHist.c	Sat Feb 11 19:19:06 2012 -0800
     1.2 +++ b/DblHist.c	Sat Feb 11 19:20:37 2012 -0800
     1.3 @@ -28,8 +28,8 @@
     1.4     DblHist *hist;
     1.5     int i;
     1.6  
     1.7 -   hist = malloc( sizeof(DblHist) );
     1.8 -   hist->bins = malloc( numBins * sizeof(int) );
     1.9 +   hist = VMS__malloc( sizeof(DblHist) );
    1.10 +   hist->bins = VMS__malloc( numBins * sizeof(int) );
    1.11  
    1.12     hist->numBins      = numBins;
    1.13     hist->binWidth     = binWidth;
    1.14 @@ -102,6 +102,6 @@
    1.15  void
    1.16  freeDblHist( DblHist *hist )
    1.17   {
    1.18 -   free( hist->bins );
    1.19 -   free( hist );
    1.20 +   VMS__free( hist->bins );
    1.21 +   VMS__free( hist );
    1.22   }