ide: Two fixes regarding memory allocation