summaryrefslogtreecommitdiff
path: root/src/bson/bson.c
diff options
context:
space:
mode:
authorTyutyunkov Vyacheslav <tve@softmotions.com>2015-07-13 18:10:49 +0600
committerTyutyunkov Vyacheslav <tve@softmotions.com>2015-07-13 18:10:49 +0600
commit161e67aeefdbfff815eab9e3fe95de7c14fd1e27 (patch)
tree0a88dd6b838c25cc2a57b7a791b1f0b8bdca81bc /src/bson/bson.c
parent7ef6da08a906f4dd0a4e750d342e05d59d59a4d6 (diff)
downloadejdb-161e67aeefdbfff815eab9e3fe95de7c14fd1e27.tar.gz
ejdb-161e67aeefdbfff815eab9e3fe95de7c14fd1e27.tar.bz2
ejdb-161e67aeefdbfff815eab9e3fe95de7c14fd1e27.zip
#148 - memory leak fixes
Diffstat (limited to 'src/bson/bson.c')
-rw-r--r--src/bson/bson.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bson/bson.c b/src/bson/bson.c
index 6e9feef..1fa3c77 100644
--- a/src/bson/bson.c
+++ b/src/bson/bson.c
@@ -1860,6 +1860,7 @@ static void _bson_fix_duplicate_keys(bson_iterator *it, bson *bso) {
} else {
bson_append_field_from_iterator(&it2, bso);
}
+ tclistclear(dups);
tclistdel(dups);
}
tcmapdel(keys);