Skip to content

Commit 0537b2c

Browse files
committed
revert unrelated commit, update memory leak fix
1 parent 8efcf16 commit 0537b2c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PWGCF/GenericFramework/Core/FlowContainer.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -919,12 +919,12 @@ TProfile* FlowContainer::GetRefFlowProfile(const char* order, double m1, double
919919
delete tempprof;
920920
}
921921
delete rhSubset;
922-
if (retpf) {
923-
retpf->RebinX(nBins);
924-
return retpf;
925-
} else {
922+
if (!retpf) {
923+
LOGF(error, "Reference flow profile is null");
926924
return nullptr;
927925
}
926+
retpf->RebinX(nBins);
927+
return retpf;
928928
};
929929

930930
//{2} particle correlations

0 commit comments

Comments
 (0)