diff options
author | 2008-07-17 14:18:57 -0400 | |
---|---|---|
committer | 2008-07-17 14:18:57 -0400 | |
commit | 2ae89dd4180bb36e3f37ba5f1d92d59a029552c2 (patch) | |
tree | 640137276b8d1308ef2b4df28033b34199851dfe /src/c/driver.c | |
parent | 2e00cd0bdfadfab33a3c802994c8c0e5cf565174 (diff) |
Dynamic arena allocation
Diffstat (limited to 'src/c/driver.c')
-rw-r--r-- | src/c/driver.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/c/driver.c b/src/c/driver.c index 8f3ef70f..6fb3defe 100644 --- a/src/c/driver.c +++ b/src/c/driver.c @@ -72,7 +72,7 @@ static void worker(int sock) { printf("Serving URI %s....\n", path); - ctx = lw_init(1024); + ctx = lw_init(1024, 1024); lw_write (ctx, "HTTP/1.1 200 OK\r\n"); lw_write(ctx, "Content-type: text/html\r\n\r\n"); lw_write(ctx, "<html>"); @@ -81,6 +81,7 @@ static void worker(int sock) { lw_send(ctx, sock); + lw_free(ctx); printf("Done with client.\n\n"); close(sock); return; |