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:
Václav Šmejkal 2023-02-02 17:20:45 +01:00
parent 33354b8921
commit f0f0fa02e7
Signed by: ENGO150
GPG Key ID: 4A57E86482968843
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;