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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user