PreferredUserName has asked for the wisdom of the Perl Monks concerning the following question:
#include <EXTERN.h> #include <perl.h> int main(int argc, char **argv) { char *embedding[] = { "", "-e", "1" }; PerlInterpreter *interp = perl_alloc(); perl_construct(interp); if (perl_parse(interp, NULL, 3, embedding, (char **)NULL) != 0) { warn("perl_parse"); return -1; } if (perl_run(interp) != 0) { warn("perl_run"); return -1; } // leak repeatedly for (;;) eval_pv("1", TRUE); perl_destruct(interp); perl_free(interp); return 0; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: eval_pv leaking
by Joost (Canon) on Dec 27, 2004 at 17:09 UTC | |
by PreferredUserName (Pilgrim) on Dec 27, 2004 at 19:40 UTC | |
|
Version info
by PreferredUserName (Pilgrim) on Dec 27, 2004 at 16:35 UTC | |
|
Re: eval_pv leaking
by demerphq (Chancellor) on Dec 27, 2004 at 16:40 UTC |