@@ -112,7 +112,7 @@ FILE* fio_open_stream(char const* path, fio_location location)
112112if (hdr .size > 0 )
113113{
114114Assert (fio_stdin_buffer == NULL );
115- fio_stdin_buffer = malloc (hdr .size );
115+ fio_stdin_buffer = pgut_malloc (hdr .size );
116116IO_CHECK (fio_read_all (fio_stdin ,fio_stdin_buffer ,hdr .size ),hdr .size );
117117f = fmemopen (fio_stdin_buffer ,hdr .size ,"r" );
118118}
@@ -752,7 +752,7 @@ fio_gzopen(char const* path, char const* mode, int level, fio_location location)
752752int rc ;
753753if (fio_is_remote (location ))
754754{
755- fioGZFile * gz = (fioGZFile * )malloc (sizeof (fioGZFile ));
755+ fioGZFile * gz = (fioGZFile * )pgut_malloc (sizeof (fioGZFile ));
756756memset (& gz -> strm ,0 ,sizeof (gz -> strm ));
757757gz -> eof = 0 ;
758758gz -> errnum = Z_OK ;
@@ -1014,7 +1014,7 @@ static void fio_send_file(int out, char const* path)
10141014if (fd >=0 )
10151015{
10161016off_t size = lseek (fd ,0 ,SEEK_END );
1017- buf = malloc (size );
1017+ buf = pgut_malloc (size );
10181018lseek (fd ,0 ,SEEK_SET );
10191019IO_CHECK (fio_read_all (fd ,buf ,size ),size );
10201020hdr .size = size ;
@@ -1202,7 +1202,7 @@ void fio_communicate(int in, int out)
12021202DIR * dir [FIO_FDMAX ];
12031203struct dirent * entry ;
12041204size_t buf_size = 128 * 1024 ;
1205- char * buf = (char * )malloc (buf_size );
1205+ char * buf = (char * )pgut_malloc (buf_size );
12061206fio_header hdr ;
12071207struct stat st ;
12081208int rc ;