Fix error in strcmp implementation

We don't destroy registers, @matrefeytontias
Add some memchecks to malloc, free; fix malloc bug