Merge "liblp: Move free-region calculation into a separate function."
am: fa677f573a

Change-Id: I6e9ccd87cefccb0de5943fc328078b9e48fad92e