diff options
author | Stef Walter <stefw@gnome.org> | 2012-05-13 22:27:07 +0200 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2012-05-13 22:27:07 +0200 |
commit | caa953cba4d2d0cdd4823eb2f1c4f24bbf18a231 (patch) | |
tree | f303e5018500104b9d807628f196d5baf2c9336f /p11-kit/util.c | |
parent | 7bd4114182fcc86cd2515708fdf4d76622e0237d (diff) | |
download | p11-kit-caa953cba4d2d0cdd4823eb2f1c4f24bbf18a231.tar.gz |
Preconditions to check for input probs and out of memory
* We don't try to guarantee completely robust and problem
free behavior in cases where the caller or process isn't
behaving. We consider these to be outside of our control.
Diffstat (limited to 'p11-kit/util.c')
-rw-r--r-- | p11-kit/util.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/p11-kit/util.c b/p11-kit/util.c index 89ecc40..f8ec1e6 100644 --- a/p11-kit/util.c +++ b/p11-kit/util.c @@ -74,15 +74,6 @@ pthread_once_t _p11_once; static int print_messages = 1; -void* -_p11_realloc (void *memory, size_t length) -{ - void *allocated = realloc (memory, length); - if (!allocated) - free (memory); - return allocated; -} - /** * p11_kit_space_strlen: * @string: Pointer to string block |