Fixed Memory leak, thanks melg8
This commit is contained in:
parent
8bc09f2b2e
commit
a3c14bcd1b
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
** Fixed
|
** Fixed
|
||||||
Stop hang on large global arrays
|
Stop hang on large global arrays
|
||||||
|
Fixed Memory leak on read token
|
||||||
|
|
||||||
** Removed
|
** Removed
|
||||||
|
|
||||||
|
|
4
cc.c
4
cc.c
|
@ -63,7 +63,7 @@ int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
if(NULL == hold_string)
|
if(NULL == hold_string)
|
||||||
{
|
{
|
||||||
hold_string = calloc(MAX_STRING, sizeof(char));
|
hold_string = calloc(MAX_STRING + 4, sizeof(char));
|
||||||
require(NULL != hold_string, "Impossible Exhustion has occured\n");
|
require(NULL != hold_string, "Impossible Exhustion has occured\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -168,7 +168,7 @@ int main(int argc, char** argv)
|
||||||
/* Deal with special case of wanting to read from standard input */
|
/* Deal with special case of wanting to read from standard input */
|
||||||
if(stdin == in)
|
if(stdin == in)
|
||||||
{
|
{
|
||||||
hold_string = calloc(MAX_STRING, sizeof(char));
|
hold_string = calloc(MAX_STRING + 4, sizeof(char));
|
||||||
require(NULL != hold_string, "Impossible Exhustion has occured\n");
|
require(NULL != hold_string, "Impossible Exhustion has occured\n");
|
||||||
global_token = read_all_tokens(in, global_token, "STDIN");
|
global_token = read_all_tokens(in, global_token, "STDIN");
|
||||||
}
|
}
|
||||||
|
|
|
@ -179,8 +179,8 @@ fc31fc8b2d78bd50a4c89eb0e29149626868a70842a3dcb01ea87bb275a9e3c2 test/results/t
|
||||||
965bdf7049179199b9f423250a186c7b64ea55326c3249127d2daf7d42ae53cc test/results/test0106-knight-native-binary
|
965bdf7049179199b9f423250a186c7b64ea55326c3249127d2daf7d42ae53cc test/results/test0106-knight-native-binary
|
||||||
0a929d6990caee3e93b1188a38fd3041c6f8e46d25a386024647c0f05c33bce7 test/results/test0106-knight-posix-binary
|
0a929d6990caee3e93b1188a38fd3041c6f8e46d25a386024647c0f05c33bce7 test/results/test0106-knight-posix-binary
|
||||||
331ffb5284bd824494ad61a3b0b2dff5681a63ab604e9a06100af531ae237148 test/results/test0106-x86-binary
|
331ffb5284bd824494ad61a3b0b2dff5681a63ab604e9a06100af531ae237148 test/results/test0106-x86-binary
|
||||||
e9d19ffdb968df9acf74803992ddeaeb8cdac0859c376874aff7c511da8152f1 test/results/test1000-aarch64-binary
|
a9781ac8fefbbb102b7174bb86da8a9d700048c0e319ee4e48f0b904f5b9b9e4 test/results/test1000-aarch64-binary
|
||||||
b7bf60cfdbc7307b012ce37f7db9dce1232742ba2e024727659421ea569cabff test/results/test1000-amd64-binary
|
c4b57dce2ec8bcf097ff91d1a9caf35da8f60afa819bdf9296fe4bbc8f0e8c30 test/results/test1000-amd64-binary
|
||||||
eab68643534484930e46a7e80530323cb6846b732ecb01d868cc162c239bf1a6 test/results/test1000-armv7l-binary
|
77e9dfaab24725af9d11785fe6c7556a605803bfa95290a4569b2c64de6280b9 test/results/test1000-armv7l-binary
|
||||||
75223a8ee5a44debdf45244e3862bdaebae0723c093baa38dd92e91241bbeb0e test/results/test1000-knight-posix-binary
|
7d1a25d721a27088a190b8d98217cfcf801afb777f8d676bf6ebbf9c9328da33 test/results/test1000-knight-posix-binary
|
||||||
4919f426e681405958ad576c718dcb2fd3ade32e73b367e28c071503485c7475 test/results/test1000-x86-binary
|
4feb5a670ab5098fcc53a9fd6325ab0cf24f991153845641296b0905f621146f test/results/test1000-x86-binary
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
5d15d5c7db17f5341d10f5d459af1bc62b77e60b59ca05aed3d8dbcb920a40f4 test/test1000/proof
|
1c2565e2f50f9e1e4d4eaf0bba9f2467b79adc8e90f7dd3493a37ec50b052add test/test1000/proof
|
||||||
|
|
Loading…
Reference in New Issue