Constructing example could benefit from a warning that it's a memory leak and shouldn't be used to dynamically create functions