Commit 21f4a444 authored by Tarun Prabhu's avatar Tarun Prabhu

Fixed mismatched new and free statements. I still don't think this is

the problem causing the seg-faults (sadly valgrind wasn't terribly
insightful either), but it is something bad that was fixed.
parent 2a174bdc
...@@ -195,7 +195,7 @@ int parse_advertisement(tb_pgraph &pg, tb_sgraph &sg, char *filename) { ...@@ -195,7 +195,7 @@ int parse_advertisement(tb_pgraph &pg, tb_sgraph &sg, char *filename) {
* All done, clean up memory * All done, clean up memory
*/ */
// XMLPlatformUtils::Terminate(); // XMLPlatformUtils::Terminate();
free(rspecParser); delete rspecParser;
return 0; return 0;
} }
......
...@@ -201,7 +201,7 @@ int parse_request(tb_vgraph &vg, char *filename) { ...@@ -201,7 +201,7 @@ int parse_request(tb_vgraph &vg, char *filename) {
* All done, clean up memory * All done, clean up memory
*/ */
// XMLPlatformUtils::Terminate(); // XMLPlatformUtils::Terminate();
free(rspecParser); delete rspecParser;
return 0; return 0;
} }
......
...@@ -28,7 +28,7 @@ rspec_parser :: rspec_parser (int type) ...@@ -28,7 +28,7 @@ rspec_parser :: rspec_parser (int type)
rspec_parser :: ~rspec_parser () rspec_parser :: ~rspec_parser ()
{ {
free(this->emulabExtensions); delete this->emulabExtensions;
} }
struct link_interface rspec_parser :: getIface (const DOMElement* tag) struct link_interface rspec_parser :: getIface (const DOMElement* tag)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment