removed unused allocations
NOTE: This wasn't causing any memory leaks, I just made my own realloc where you can pass NULL as pointer
This commit is contained in:
parent
33354b8921
commit
f0f0fa02e7
@ -62,7 +62,7 @@ why2_output_flags why2_decrypt_text(char *text, char *keyNew)
|
||||
char *returningText;
|
||||
int numberBuffer = 1;
|
||||
int usedTextDeallocationBuffer = 0;
|
||||
char *textBuffer = why2_malloc(1);
|
||||
char *textBuffer = NULL;
|
||||
int textKeyChainLength;
|
||||
int *textKeyChain;
|
||||
char *key = why2_strdup(keyNew); //COPY keyNew TO key
|
||||
|
@ -51,7 +51,7 @@ why2_output_flags why2_encrypt_text(char *text, char *keyNew)
|
||||
//VARIABLES
|
||||
char *key = NULL;
|
||||
char *returningText;
|
||||
char *textBuffer = why2_malloc(1);
|
||||
char *textBuffer = NULL;
|
||||
int *textKeyChain = why2_malloc(sizeof(int) * strlen(text));
|
||||
int numberBuffer = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user