summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-08 00:19:48 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:40 -0400
commitee4a16743960122bf2b626f62827b7332680ebf5 (patch)
treedab8682d742718a86f0529dd86a0c832ffeb0102 /src/main.cc
parent30978b7fe5ee93413b2e05b54942f6550832b222 (diff)
downloadfork-ledger-ee4a16743960122bf2b626f62827b7332680ebf5.tar.gz
fork-ledger-ee4a16743960122bf2b626f62827b7332680ebf5.tar.bz2
fork-ledger-ee4a16743960122bf2b626f62827b7332680ebf5.zip
Corrected memory crashes when running the register command.
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc
index e664e8b8..a5ba3690 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -311,7 +311,7 @@ static int read_and_report(report_t * report, int argc, char * argv[],
std::auto_ptr<xml::xpath_t::scope_t> locals
(new xml::xpath_t::scope_t(report, xml::xpath_t::scope_t::ARGUMENT));
- locals->args = new value_t::sequence_t;
+ locals->args = value_t::sequence_t();
locals->args.push_back(out);
locals->args.push_back(journal->document);