Commit c2f17bda074b2e5718456aed75fedd2196c8dc94

Michael Procter 2015-07-23T13:17:08

Ensure static oom error message not detached Error messages that are detached are assumed to be dynamically allocated. Passing a pointer to the static oom error message can cause an attempt to free the static buffer later. This change checks if the oom error message is about to be detached and detaches a copy instead.