plug memory leak in maildir_store_msg() upon failure to acquire UID

This commit is contained in:
Oswald Buddenhagen 2011-05-22 17:22:24 +02:00
parent 9c86ec3442
commit e71ad53b7f

View File

@ -1026,6 +1026,7 @@ maildir_store_msg( store_t *gctx, msg_data_t *data, int to_trash,
{
if ((ret = maildir_uidval_lock( ctx )) != DRV_OK ||
(ret = maildir_obtain_uid( ctx, &uid )) != DRV_OK) {
free( data->data );
cb( ret, 0, aux );
return;
}