projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ca0abd
)
* ignore null pointers to free.
author
Wilfried Göesgens
<willi@citadel.org>
Sun, 13 Jul 2008 21:50:20 +0000
(21:50 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Sun, 13 Jul 2008 21:50:20 +0000
(21:50 +0000)
libcitadel/lib/stringbuf.c
patch
|
blob
|
history
diff --git
a/libcitadel/lib/stringbuf.c
b/libcitadel/lib/stringbuf.c
index 8e42b63332050924c3dfd1521c843f03620b7020..f2581d7df5eb40458119ed7ee4480ddd814d3b44 100644
(file)
--- a/
libcitadel/lib/stringbuf.c
+++ b/
libcitadel/lib/stringbuf.c
@@
-127,6
+127,8
@@
void FreeStrBuf (StrBuf **FreeMe)
void HFreeStrBuf (void *VFreeMe)
{
StrBuf *FreeMe = (StrBuf*)VFreeMe;
+ if (FreeMe == NULL)
+ return;
if (!FreeMe->ConstBuf)
free(FreeMe->buf);
free(FreeMe);