Permalink
Browse files

Possible memory leak. Dynamic memory stored in 'n->buffer.buf' alloca…

…ted through function 'cherokee_buffer_ensure_size' at

line 63 can be lost at line 67 (Klocwork.com Issue #66)


git-svn-id: svn://cherokee-project.com/cherokee/trunk@6672 5dc97367-97f1-0310-9951-d761b3857238
  • Loading branch information...
1 parent 6b479aa commit 12254107c2c13d294ea39f64322bfb8eb42f23d8 @skinkie skinkie committed May 21, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 cherokee/logger_writer.c
View
@@ -64,6 +64,7 @@ cherokee_logger_writer_new (cherokee_logger_writer_t **writer)
n->priv = malloc (sizeof(priv_t));
if (n->priv == NULL) {
+ cherokee_buffer_mrproper (&n->buffer);
free(n);
return ret_nomem;
}

0 comments on commit 1225410

Please sign in to comment.