cmake: make Check not REQUIRED
free memory
handle case, when comment is empty

   - read about how malloc(0) works;