Fix out of memory issue with libfdt