Check for failed extradata malloc, fixes a crash in out-of-memory conditions