Mem leak in the input buffer
Improve modules interface (check allocated memory)