diff --git a/src/conversionOfNumbers/main.c b/src/conversionOfNumbers/main.c index c2679ca..b6b5151 100644 --- a/src/conversionOfNumbers/main.c +++ b/src/conversionOfNumbers/main.c @@ -1,6 +1,7 @@ #include "conversionOfNumbers.h" #include "../userinput.h" #include +#include int main(){ int min = 0; @@ -34,6 +35,7 @@ int main(){ int toConvert = usergetd("\nGeben Sie eine Ganzzahl ein: ", NULL, NULL); char* result = convertIntToBinaryStr(toConvert); printf("\nAusgabe (in Binaer): %s\n", result); + free(result); } } if(InputSys == 1){ @@ -47,6 +49,7 @@ int main(){ int toConvert = usergetd("\nGeben Sie eine positive Ganzzahl ein: ", &rangeMin, NULL); char* result = convertIntToHex(toConvert); printf("\nAusgabe (in Hex): %s\n", result); + free(result); } } }