mirror of https://gitee.com/bigwinds/arangodb
lol self
This commit is contained in:
parent
18963d635c
commit
5865ca7955
|
@ -187,11 +187,11 @@ void TRI_AddFailurePointDebugging (char const* value) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
TRI_Free(TRI_CORE_MEM_ZONE, FailurePoints);
|
|
||||||
|
|
||||||
memcpy(copy, FailurePoints, strlen(FailurePoints));
|
memcpy(copy, FailurePoints, strlen(FailurePoints));
|
||||||
memcpy(copy + strlen(FailurePoints) - 1, checkValue, n);
|
memcpy(copy + strlen(FailurePoints) - 1, checkValue, n);
|
||||||
copy[strlen(FailurePoints) + n - 1] = '\0';
|
copy[strlen(FailurePoints) + n - 1] = '\0';
|
||||||
|
|
||||||
|
TRI_Free(TRI_CORE_MEM_ZONE, FailurePoints);
|
||||||
}
|
}
|
||||||
|
|
||||||
FailurePoints = copy;
|
FailurePoints = copy;
|
||||||
|
|
Loading…
Reference in New Issue