[EOSIO/eos] Free allocated memory in unpack_action_data (#4960)

brianjohnson5972 commented on this pull request.

> @@ -50,7 +50,11 @@ namespace eosio {
size_t size = action_data_size();
char* buffer = (char*)( max_stack_buffer_size < size ? malloc(size) : alloca(size) ); Add: const bool heap_allocation = max_stack_buffer_size < size; and use heap_allocation in both places.

Добавить комментарий