1
0
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:
girish joshi 2020-02-01 12:54:41 +05:30 committed by GitHub
parent 75fe6b1a03
commit b195a45a99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}