Browse Source

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

wip/maildir-uid-dupes-test
Oswald Buddenhagen 14 years ago
parent
commit
e71ad53b7f
  1. 1
      src/drv_maildir.c

1
src/drv_maildir.c

@ -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…
Cancel
Save