Skip to content

Commit 57ba0fd

Browse files
committed
coverity fix
1 parent 959ffaf commit 57ba0fd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/bulkdata/profilexconf.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,9 +1003,14 @@ T2ERROR ProfileXConf_terminateReport()
10031003

10041004
T2ERROR ret = T2ERROR_FAILURE;
10051005

1006+
pthread_mutex_lock(&plMutex);
1007+
10061008
if(!singleProfile)
10071009
{
10081010
T2Error("Xconf profile is not set.\n");
1011+
1012+
pthread_mutex_unlock(&plMutex);
1013+
10091014
return ret;
10101015
}
10111016

@@ -1033,6 +1038,8 @@ T2ERROR ProfileXConf_terminateReport()
10331038
T2Info("No report generation in progress. No further action required for abort.\n");
10341039
}
10351040

1041+
pthread_mutex_unlock(&plMutex);
1042+
10361043
return ret;
10371044

10381045
}

0 commit comments

Comments
 (0)