Skip to content

Commit

Permalink
lib-sql: Memory leak fix when freeing sql dbs from cache
Browse files Browse the repository at this point in the history
Normally happened only at deinit.
  • Loading branch information
sirainen committed May 19, 2016
1 parent 3b04ff6 commit 42ea160
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib-sql/sql-db-cache.c
Expand Up @@ -79,6 +79,7 @@ static void sql_db_cache_free_tail(struct sql_db_cache *cache)

i_free(ctx->key);
ctx->orig_deinit(db);
i_free(ctx);
}

static void sql_db_cache_drop_oldest(struct sql_db_cache *cache)
Expand Down

0 comments on commit 42ea160

Please sign in to comment.