projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1039861
)
silc_stack_free can now be called with NULL stack
author
Pekka Riikonen
<priikone@silcnet.org>
Sun, 31 Aug 2008 06:58:49 +0000
(09:58 +0300)
committer
Pekka Riikonen
<priikone@silcnet.org>
Sun, 31 Aug 2008 06:58:49 +0000
(09:58 +0300)
lib/silcutil/silcstack.c
patch
|
blob
|
history
diff --git
a/lib/silcutil/silcstack.c
b/lib/silcutil/silcstack.c
index fabef8ec7dbddc953b8ba2ff45cec6f7f4aafeca..6107cf047598a912e888fa55aadc59850b4f2be5 100644
(file)
--- a/
lib/silcutil/silcstack.c
+++ b/
lib/silcutil/silcstack.c
@@
-4,7
+4,7
@@
Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 2003 - 200
6
Pekka Riikonen
+ Copyright (C) 2003 - 200
8
Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-66,6
+66,9
@@
void silc_stack_free(SilcStack stack)
{
int i;
+ if (!stack)
+ return;
+
silc_free(stack->frames);
for (i = 0; i < SILC_STACK_BLOCK_NUM; i++)
silc_free(stack->stack[i]);