mirror of
https://github.com/benhoyt/inih.git
synced 2025-01-28 22:52:54 +08:00
Freed memory before exiting in examples/ini_example.c (#95)
This commit is contained in:
parent
75fe6b1a03
commit
b195a45a99
@ -40,5 +40,9 @@ int main(int argc, char* argv[])
|
||||
}
|
||||
printf("Config loaded from 'test.ini': version=%d, name=%s, email=%s\n",
|
||||
config.version, config.name, config.email);
|
||||
|
||||
free((void*)config.name);
|
||||
free((void*)config.email);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user