maildir: fix trash path double-free
It should be freed at the very end. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
		
							parent
							
								
									ff9bf4d91b
								
							
						
					
					
						commit
						aad7f903ec
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -162,7 +162,6 @@ maildir_cleanup( store_t *gctx )
 | 
				
			||||||
	if (ctx->db)
 | 
						if (ctx->db)
 | 
				
			||||||
		ctx->db->close( ctx->db, 0 );
 | 
							ctx->db->close( ctx->db, 0 );
 | 
				
			||||||
#endif /* USE_DB */
 | 
					#endif /* USE_DB */
 | 
				
			||||||
	free( ctx->trash );
 | 
					 | 
				
			||||||
	free( gctx->path );
 | 
						free( gctx->path );
 | 
				
			||||||
	free( ctx->excs );
 | 
						free( ctx->excs );
 | 
				
			||||||
	if (ctx->uvfd >= 0)
 | 
						if (ctx->uvfd >= 0)
 | 
				
			||||||
| 
						 | 
					@ -173,6 +172,7 @@ static void
 | 
				
			||||||
maildir_disown_store( store_t *gctx )
 | 
					maildir_disown_store( store_t *gctx )
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	maildir_cleanup( gctx );
 | 
						maildir_cleanup( gctx );
 | 
				
			||||||
 | 
						free( ((maildir_store_t *)gctx)->trash );
 | 
				
			||||||
	free_string_list( gctx->boxes );
 | 
						free_string_list( gctx->boxes );
 | 
				
			||||||
	free( gctx );
 | 
						free( gctx );
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue