Handled failure to release a mutex lock. Coverity CID 28698.
This commit is contained in:
parent
1103a7127e
commit
6f1e97a8e3
@ -2394,7 +2394,7 @@ struct xorriso_md5_state {
|
||||
int Xorriso__add_spot(struct xorriso_md5_state *state,
|
||||
int start_lba, int blocks, int quality, int flag)
|
||||
{
|
||||
int ret;
|
||||
int ret, uret;
|
||||
|
||||
if(state->chunk != NULL) {
|
||||
ret= pthread_mutex_lock(&(state->spot_mutex));
|
||||
@ -2402,8 +2402,11 @@ int Xorriso__add_spot(struct xorriso_md5_state *state,
|
||||
return(0);
|
||||
}
|
||||
ret= Spotlist_add_item(state->spotlist, start_lba, blocks, quality, 0);
|
||||
if(state->chunk != NULL)
|
||||
pthread_mutex_unlock(&(state->spot_mutex));
|
||||
if(state->chunk != NULL) {
|
||||
uret= pthread_mutex_unlock(&(state->spot_mutex));
|
||||
if(uret != 0 && ret > 0)
|
||||
ret= 0;
|
||||
}
|
||||
return(ret);
|
||||
}
|
||||
|
||||
|
@ -1 +1 @@
|
||||
#define Xorriso_timestamP "2015.11.13.152751"
|
||||
#define Xorriso_timestamP "2015.11.13.202241"
|
||||
|
Loading…
Reference in New Issue
Block a user