mirror of
https://github.moeyy.xyz/https://github.com/TheAlgorithms/C.git
synced 2023-10-11 15:56:24 +08:00
1b3a1ca91e
The call to realloc() already frees the previously allocated memory if necessary. By the man page of realloc(): "f the area pointed to was moved, a free(ptr) is done.", and free(): "If free(ptr) has already been called before, undefined behavior occurs.". |
||
---|---|---|
.. | ||
array | ||
binary_trees | ||
dictionary | ||
dynamic_array | ||
graphs | ||
hash_set | ||
heap | ||
linked_list | ||
list | ||
queue | ||
stack | ||
trie | ||
stack.c | ||
vector.c |