am af20a7cb: resolved conflicts for merge of cda81d01 to mnc-dr-dev-plus-aosp

* commit 'af20a7cb12e5426738f8f068f6e5e46871bae1aa':
  init: Use classes for parsing and clean up memory allocations