X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmParsePixels.cxx;h=c7233f3026ff494a411ccaa4843935fb32e5fa31;hb=36205426d2bbb33e6e08793130f6b6485a500372;hp=241bd81856d7ea7a9f6f790b9a92529300d5dd3f;hpb=b9ab8805bd66e5fc6dc74788435df455899eb661;p=gdcm.git diff --git a/src/gdcmParsePixels.cxx b/src/gdcmParsePixels.cxx index 241bd818..c7233f30 100644 --- a/src/gdcmParsePixels.cxx +++ b/src/gdcmParsePixels.cxx @@ -79,7 +79,7 @@ bool gdcmFile::ParsePixelData(void) { (unsigned)ftellRes,ln,ln); if (ln != 0) { // What is it used for ?? - char * BasicOffsetTableItemValue= (char *)malloc(ln+1); + char * BasicOffsetTableItemValue= new char[ln+1]; fread(BasicOffsetTableItemValue,ln,1,fp); guint32 a; for (int i=0;i