Skip to content

Commit 62cb099

Browse files
committed
fix memory leak for Store.multi_get()
1 parent 90ae1e9 commit 62cb099

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/gstype_python.i

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2083,6 +2083,12 @@ static bool getRowFields(GSRow* row, int columnCount, GSType* typeList, bool tim
20832083
if (*$3) {
20842084
delete [] (*$3);
20852085
}
2086+
for (int i = 0; i < *$2; i++) {
2087+
for (int j = 0; j < (*$1)[i].rowCount; j++) {
2088+
row = (GSRow*)(*$1)[i].rowList[j];
2089+
gsCloseRow(&row);
2090+
}
2091+
}
20862092
$result = dict;
20872093
}
20882094

0 commit comments

Comments
 (0)