Merge lp:~zorba-coders/zorba/markos-scratch into lp:zorba

Proposed by Markos Zaharioudakis
Status: Merged
Approved by: Markos Zaharioudakis
Approved revision: 11058
Merged at revision: 11365
Proposed branch: lp:~zorba-coders/zorba/markos-scratch
Merge into: lp:zorba
Diff against target: 30 lines (+10/-1)
2 files modified
ChangeLog (+1/-0)
src/store/naive/simple_temp_seq.cpp (+9/-1)
To merge this branch: bzr merge lp:~zorba-coders/zorba/markos-scratch
Reviewer Review Type Date Requested Status
Markos Zaharioudakis Approve
Review via email: mp+158282@code.launchpad.net

Commit message

Fixed memory leak in temp sequence

Description of the change

Fixed memory leak in temp sequence

To post a comment you must log in.
Revision history for this message
Markos Zaharioudakis (markos-za) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job markos-scratch-2013-04-11T06-56-55.477Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ChangeLog'
2--- ChangeLog 2013-04-10 14:18:16 +0000
3+++ ChangeLog 2013-04-11 06:55:27 +0000
4@@ -71,6 +71,7 @@
5 * Fixed bug #1099535 (xml:parse endless loop)
6 * Fixed bug in optimizing fn:count over general-index probes
7 * Fixed bug #866958 (Parsing error not explicit enough)
8+ * Fixed memory leak in temp sequence
9 * Fixed bug in computing the static type of a self-axis path step.
10 * Fixed bug #867068: (Incorrect usage of XQDY0027)
11 * Fixed bug: jsoniq constructor should not be const-folded
12
13=== modified file 'src/store/naive/simple_temp_seq.cpp'
14--- src/store/naive/simple_temp_seq.cpp 2013-03-04 21:00:58 +0000
15+++ src/store/naive/simple_temp_seq.cpp 2013-04-11 06:55:27 +0000
16@@ -60,7 +60,15 @@
17 ********************************************************************************/
18 SimpleTempSeq::SimpleTempSeq(const store::Iterator_t& iter)
19 {
20- init(iter);
21+ try
22+ {
23+ init(iter);
24+ }
25+ catch (...)
26+ {
27+ clear();
28+ throw;
29+ }
30 }
31
32

Subscribers

People subscribed via source and target branches