Bump version to 0.4rc3 and fix memory leak

* Bump version to 0.4rc3
* xseg: Free xseg context allocated memory