diff src/c/urweb.c @ 1330:452b14d88a10

fix small memory leaks
author Marc Weber <marco-oweber@gmx.de>
date Sun, 05 Dec 2010 18:47:54 +0100
parents 1cc67fdac4d3
children 4dd5d23bace2
line wrap: on
line diff
--- a/src/c/urweb.c	Sat Dec 11 11:00:05 2010 -0500
+++ b/src/c/urweb.c	Sun Dec 05 18:47:54 2010 +0100
@@ -552,10 +552,12 @@
 
   for (i = 0; i < ctx->n_deltas; ++i)
     buf_free(&ctx->deltas[i].msgs);
+  free(ctx->deltas);
 
   for (i = 0; i < ctx->n_globals; ++i)
     if (ctx->globals[i].free)
       ctx->globals[i].free(ctx->globals[i].data);
+  free(ctx->globals);
 
   free(ctx);
 }