Commit 4ed27c7
committed
PYCBC-1649: Transactions - fix memory leak when creating
TransactionGetResult
Changes
=======
* Move transaction_get_result struct to use std::unique_ptr instead of
raw pointer
* Only set the transaction_get_result's TransactionGetResult when
necessary
Change-Id: I00398c96d40fc3dc9dad18f1a62be92551039d0d
Reviewed-on: https://review.couchbase.org/c/couchbase-python-client/+/222085
Reviewed-by: Dimitris Christodoulou <dimitris.christodoulou@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>1 parent 03c270e commit 4ed27c7
2 files changed
Lines changed: 8 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | | - | |
| 522 | + | |
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
| |||
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
596 | | - | |
597 | 596 | | |
598 | 597 | | |
599 | 598 | | |
| |||
996 | 995 | | |
997 | 996 | | |
998 | 997 | | |
999 | | - | |
1000 | | - | |
1001 | | - | |
1002 | | - | |
1003 | | - | |
1004 | | - | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
1005 | 1003 | | |
1006 | 1004 | | |
1007 | 1005 | | |
| |||
1032 | 1030 | | |
1033 | 1031 | | |
1034 | 1032 | | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
| 1033 | + | |
1038 | 1034 | | |
1039 | 1035 | | |
1040 | 1036 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
0 commit comments