"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "stress-hsearch.c" between
stress-ng-0.13.04.tar.xz and stress-ng-0.13.05.tar.xz

About: stress-ng will stress test a computer system in various selectable ways. It was designed to exercise various physical subsystems of a computer as well as the various operating system kernel interfaces.

stress-hsearch.c  (stress-ng-0.13.04.tar.xz):stress-hsearch.c  (stress-ng-0.13.05.tar.xz)
skipping to change at line 138 skipping to change at line 138
/* /*
* The semantics to hdestroy are rather varied from * The semantics to hdestroy are rather varied from
* system to system. OpenBSD will free the keys, * system to system. OpenBSD will free the keys,
* where as NetBSD provides traditional functionality * where as NetBSD provides traditional functionality
* that does not free them, plus hdestroy1 where * that does not free them, plus hdestroy1 where
* one can provide a free'ing callback. Linux * one can provide a free'ing callback. Linux
* currently does not destroy them. It's a mess, * currently does not destroy them. It's a mess,
* so for now, don't free them and just let it * so for now, don't free them and just let it
* leak, the exit() will clean up the heap for us * leak, the exit() will clean up the heap for us
*/ */
/* #if defined(__linux__)
for (i = 0; i < max; i++) for (i = 0; i < max; i++)
free(keys[i]); free(keys[i]);
*/ #endif
free(keys); free(keys);
free_hash: free_hash:
stress_set_proc_state(args->name, STRESS_STATE_DEINIT); stress_set_proc_state(args->name, STRESS_STATE_DEINIT);
hdestroy(); hdestroy();
return ret; return ret;
} }
static const stress_opt_set_func_t opt_set_funcs[] = { static const stress_opt_set_func_t opt_set_funcs[] = {
{ OPT_hsearch_size, stress_set_hsearch_size }, { OPT_hsearch_size, stress_set_hsearch_size },
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)