Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Inline::C demonstration for C programmers

by ikegami (Patriarch)
on Sep 01, 2008 at 06:27 UTC ( [id://708118] : note . print w/replies, xml ) Need Help??


in reply to Re: Inline::C demonstration for C programmers
in thread Inline::C demonstration for C programmers

Why wouldn't they? They're not on the stack, they're part of the program's image. Memory doesn't just free itself.

In fact, quite the opposite problem would occur had the OP used malloc or new to create the returned string: a memory leak.