]> git.kaiwu.me - nginx.git/commitdiff
fix r3155
authorIgor Sysoev <igor@sysoev.ru>
Thu, 24 Sep 2009 20:09:12 +0000 (20:09 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 24 Sep 2009 20:09:12 +0000 (20:09 +0000)
src/event/ngx_event_openssl.c

index 9515f322de3c87959f830128a8baec5b2479159c..c46a47d1b6a297deb3fe55cd234c22746d6aa797 100644 (file)
@@ -1947,7 +1947,7 @@ ngx_ssl_get_session_id(ngx_connection_t *c, ngx_pool_t *pool, ngx_str_t *s)
     s->len = 2 * len;
     s->data = ngx_pnalloc(pool, 2 * len);
     if (s->data == NULL) {
-        ngx_free(p);
+        ngx_free(buf);
         return NGX_ERROR;
     }