Loading services/audiopolicy/service/AudioPolicyEffects.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -399,11 +399,12 @@ size_t AudioPolicyEffects::growParamSize(char **param, while (pos + size > *totSize) { *totSize += ((*totSize + 7) / 8) * 4; } *param = (char *)realloc(*param, *totSize); if (*param == NULL) { char *newParam = (char *)realloc(*param, *totSize); if (newParam == NULL) { ALOGE("%s realloc error for size %zu", __func__, *totSize); return 0; } *param = newParam; } *curSize = pos + size; return pos; Loading Loading
services/audiopolicy/service/AudioPolicyEffects.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -399,11 +399,12 @@ size_t AudioPolicyEffects::growParamSize(char **param, while (pos + size > *totSize) { *totSize += ((*totSize + 7) / 8) * 4; } *param = (char *)realloc(*param, *totSize); if (*param == NULL) { char *newParam = (char *)realloc(*param, *totSize); if (newParam == NULL) { ALOGE("%s realloc error for size %zu", __func__, *totSize); return 0; } *param = newParam; } *curSize = pos + size; return pos; Loading