[svn:parrot] r39628 - trunk/src
NotFound at svn.parrot.org
NotFound at svn.parrot.org
Wed Jun 17 14:39:27 UTC 2009
Author: NotFound
Date: Wed Jun 17 14:39:27 2009
New Revision: 39628
URL: https://trac.parrot.org/parrot/changeset/39628
Log:
[cage] no need to strdup here
Modified:
trunk/src/main.c
Modified: trunk/src/main.c
==============================================================================
--- trunk/src/main.c Wed Jun 17 14:28:02 2009 (r39627)
+++ trunk/src/main.c Wed Jun 17 14:39:27 2009 (r39628)
@@ -19,7 +19,6 @@
*/
#include <stdio.h>
-#include <string.h>
#include "parrot/parrot.h"
#include "parrot/embed.h"
@@ -57,13 +56,12 @@
available. */
Parrot_set_executable_name(interp, Parrot_str_new(interp, argv[0], 0));
- sourcefile = strdup(parseflags(interp, &argc, &argv));
+ sourcefile = parseflags(interp, &argc, &argv);
status = imcc_run(interp, sourcefile, argc, argv);
UNUSED(status);
/* Clean-up after ourselves */
Parrot_destroy(interp);
- free(sourcefile);
Parrot_exit(interp, 0);
}
More information about the parrot-commits
mailing list