OP2/OP2-Common — pull request #16 by kynan (2012-04-10 14:52:09+00:00)
Title: Copy strings in core library initialisers

Core library initialisers for `op_set`, `op_map`, `op_dat` assume that the pointers passed in for strings specifying names and data types remain valid for the lifetime of the created data structures. That is an undocumented requirement that can easily lead to hard to find errors for the user. In this branch that is fixed by copying the strings in the initialisers and freeing that memory on exit.