Fixes memory allocation

Fixes memory allocation: malloc(sizeof(char)*info.size);