stats module malloc
struct stat_data *data = malloc(sizeof(*data));
This malloc
call would appear to be incorrect. The argument to sizeof
should be stat_data
unless I have missed something.
struct stat_data *data = malloc(sizeof(*data));
This malloc
call would appear to be incorrect. The argument to sizeof
should be stat_data
unless I have missed something.