This message was posted on behalf of Intel Corporation
Thank you for contacting us. According to the link you posted, the way to get the available memory is by using a library called MemoryFree Library. In cases like this, where the problem is directly related to the Arduino 101 IDE and not the Curie module specifically, it’s best to contact Arduino. They’ll be able to provide a more accurate response. You can find the link here https://forum.arduino.cc/index.php?board=103.0
Have a nice day.