Yet another remaining case of non-trivial data created with C-style allocation. While 4.4 and previous did not exhibit the crash, the invalid code responsible for this crash is present here as well, and it would be dangerous not to fix it.
discrete
RNA_pointer_create
MEM_new
MEM_freeN