1
1
mirror of https://github.com/theoludwig/libcproject.git synced 2025-05-21 23:21:15 +02:00

fix: more memory issues thanks to -fsanitize=address flag

Work In Progress #5
This commit is contained in:
2023-08-03 23:55:14 +02:00
parent a0a1310f53
commit 209440588d
7 changed files with 131 additions and 35 deletions

View File

@ -56,7 +56,9 @@ string_t convert_number_to_string(const long long integer) {
string_value[index++] = '-';
}
string_value[index] = '\0';
return string_reverse(string_value);
char* result = string_reverse(string_value);
free(string_value);
return result;
}
string_t convert_number_from_base_10_to_base(unsigned long long number, unsigned int base) {