lht/rust — comment on commit 7aaeb3f991e743af4333506ac04e7cf27372842b
File: src/test/run-pass/native-fn-linkname.rs line 12
By brson:

This line has a memory leak. unsafe::to_ptr takes a pointer to the elements of a vector, but here that vector is temporary, so it gets destroyed before the pointer gets used. Assign str::bytes(str) to a variable to make the vector outlive its pointer.