diff options
author | reinelt <> | 2004-03-03 03:47:04 +0000 |
---|---|---|
committer | reinelt <> | 2004-03-03 03:47:04 +0000 |
commit | 9b7d2e2732d586f86c3458053a20120b79936621 (patch) | |
tree | 723676ea31fe0615b4d0caca1491e5a21fe85c7a /plugin_cpuinfo.c | |
parent | 27334b5cb11a8c3462cffda31aa7e8180561d78f (diff) | |
download | lcd4linux-9b7d2e2732d586f86c3458053a20120b79936621.tar.gz |
[lcd4linux @ 2004-03-03 03:47:04 by reinelt]
big patch from Martin Hejl:
- use qprintf() where appropriate
- save CPU cycles on gettimeofday()
- add quit() functions to free allocated memory
- fixed lots of memory leaks
Diffstat (limited to 'plugin_cpuinfo.c')
-rw-r--r-- | plugin_cpuinfo.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/plugin_cpuinfo.c b/plugin_cpuinfo.c index e157a2e..1bec66b 100644 --- a/plugin_cpuinfo.c +++ b/plugin_cpuinfo.c @@ -1,4 +1,4 @@ -/* $Id: plugin_cpuinfo.c,v 1.7 2004/01/29 04:40:02 reinelt Exp $ +/* $Id: plugin_cpuinfo.c,v 1.8 2004/03/03 03:47:04 reinelt Exp $ * * plugin for /proc/cpuinfo parsing * @@ -23,6 +23,13 @@ * * * $Log: plugin_cpuinfo.c,v $ + * Revision 1.8 2004/03/03 03:47:04 reinelt + * big patch from Martin Hejl: + * - use qprintf() where appropriate + * - save CPU cycles on gettimeofday() + * - add quit() functions to free allocated memory + * - fixed lots of memory leaks + * * Revision 1.7 2004/01/29 04:40:02 reinelt * every .c file includes "config.h" now * @@ -143,3 +150,8 @@ int plugin_init_cpuinfo (void) AddFunction ("cpuinfo", 1, my_cpuinfo); return 0; } + +void plugin_exit_cpuinfo(void) +{ + hash_destroy(&CPUinfo); +} |