const-correctness - freeing is modifying

http://stackoverflow.com/questions/2819535/unable-to-free-const-pointers-in-c/2824735#2824735