#148 - memory leak fixes
authorTyutyunkov Vyacheslav <tve@softmotions.com>
Mon, 13 Jul 2015 12:10:49 +0000 (18:10 +0600)
committerTyutyunkov Vyacheslav <tve@softmotions.com>
Mon, 13 Jul 2015 12:10:49 +0000 (18:10 +0600)
src/bson/bson.c

index 6e9feef..1fa3c77 100644 (file)
@@ -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);