Code

store: Fixed a memory leak in sdb_store_expr_iter_destroy().
authorSebastian Harl <sh@tokkee.org>
Sun, 8 Mar 2015 21:46:45 +0000 (22:46 +0100)
committerSebastian Harl <sh@tokkee.org>
Sun, 8 Mar 2015 21:46:45 +0000 (22:46 +0100)
src/core/store_expr.c

index 230c95795f5046944ee665ce3c86f69efd19e5a7..42ebcaa26954a42ab279fbd20728c98f591e8e35 100644 (file)
@@ -374,6 +374,7 @@ sdb_store_expr_iter_destroy(sdb_store_expr_iter_t *iter)
        iter->array_idx = 0;
 
        sdb_object_deref(SDB_OBJ(iter->obj));
+       sdb_object_deref(SDB_OBJ(iter->expr));
        sdb_object_deref(SDB_OBJ(iter->filter));
        free(iter);
 } /* sdb_store_expr_iter_destroy */