summaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
authorRocco Rutte <pdmef@gmx.net>2006-05-18 17:35:29 +0000
committerRocco Rutte <pdmef@gmx.net>2006-05-18 17:35:29 +0000
commit503d12ff6d253b25eaf6a2dc4c24ee54a825bbc3 (patch)
tree042a6eef13e07b7519da4be30337f73412284195 /hash.c
parent5dff0a79b838d056a86fdf092a20fbbb84f649ba (diff)
Avoid safe_free() usage and add security checks
Add checks to check_sec.sh for memory functions. These include a check for use of safe_free() instead of FREE() and a check whether FREE(&...) is used. For the former, __SAFE_FREE_CHECKED__ is to be used, for the latter __FREE_CHECKED__ to avoid messages from check_sec.sh
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index cc9ca15a..2c7e6dd7 100644
--- a/hash.c
+++ b/hash.c
@@ -158,5 +158,5 @@ void hash_destroy (HASH **ptr, void (*destroy) (void *))
}
}
FREE (&pptr->table);
- FREE (ptr);
+ FREE (ptr); /* __FREE_CHECKED__ */
}