don't touch free'ed memory. From: wang.zhong3@zte.com.cn, sync w/kame
This commit is contained in:
parent
4fc0806163
commit
42ebaa698b
|
@ -77,8 +77,8 @@ log_open(siz, fname)
|
|||
|
||||
p->tbuf = (time_t *)racoon_malloc(sizeof(time_t *) * siz);
|
||||
if (p->tbuf == NULL) {
|
||||
racoon_free(p);
|
||||
racoon_free(p->buf);
|
||||
racoon_free(p);
|
||||
return NULL;
|
||||
}
|
||||
memset(p->tbuf, 0, sizeof(time_t *) * siz);
|
||||
|
|
Loading…
Reference in New Issue