lgrosz / ClimbLib

https://lgrosz.github.io/ClimbLib/
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Uses realloc for climb aliases #21

Closed lgrosz closed 4 months ago

lgrosz commented 4 months ago

For some reason, this breaks the MacOS leaks utility. When I run leaks --atExit -- .../tests/UnitTests climb the program cannot attach to the pid the profile it. I'm unsure if this is a problem with leaks or with something I did differently in the program.. When I revert this commit, all works fine.

lgrosz commented 4 months ago

For some reason, this breaks the MacOS leaks utility. When I run leaks --atExit -- .../tests/UnitTests climb the program cannot attach to the pid the profile it. I'm unsure if this is a problem with leaks or with something I did differently in the program.. When I revert this commit, all works fine.

I was just forgetting to * sizeof(const char *) when allocating my const char **.. I would've expected the program to crash, but oh well.