fixed textBuffer memory leak
This commit is contained in:
parent
003a5a5a7e
commit
a1852354b4
@ -125,14 +125,7 @@ outputFlags encryptText(char *text, char *keyNew)
|
||||
{
|
||||
numberBuffer = sizeof(int) * countIntLength(textKeyChain[i]);
|
||||
|
||||
if (i != 0)
|
||||
{
|
||||
textBuffer = realloc(textBuffer, numberBuffer);
|
||||
}
|
||||
else
|
||||
{
|
||||
textBuffer = malloc(numberBuffer);
|
||||
}
|
||||
|
||||
sprintf(textBuffer, "%d", textKeyChain[i]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user