"OutOfMemoryError: Java heap space" when running with diffTypes=data

This issue is also seen in liquibase version 4.2.0 when used with maven.

I am unable to export data even for a single table that has 10 records.

I did profiling and found there’s a memory leakage.
Details of issue can be found below.