plug memory leak in maildir_store_msg() upon failure to acquire UID
This commit is contained in:
parent
9c86ec3442
commit
e71ad53b7f
|
@ -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 ||
|
if ((ret = maildir_uidval_lock( ctx )) != DRV_OK ||
|
||||||
(ret = maildir_obtain_uid( ctx, &uid )) != DRV_OK) {
|
(ret = maildir_obtain_uid( ctx, &uid )) != DRV_OK) {
|
||||||
|
free( data->data );
|
||||||
cb( ret, 0, aux );
|
cb( ret, 0, aux );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user