This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project iwhd.git.
The branch, master has been updated
via 2214d5b9c6adb68baabcaffabc73dd02239096b1 (commit)
from 5f1095727aeb9a484c46c3586485e1b89468b06a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://repo.or.cz/w/iwhd.git/commit/2214d5b9c6adb68baabcaffabc73dd02239096b1
commit 2214d5b9c6adb68baabcaffabc73dd02239096b1
Author: Jim Meyering <meyering(a)redhat.com>
Date: Tue Sep 28 15:12:33 2010 +0200
plug a nasty leak and 3 others like it
* rest.c (proxy_update_prov): Don't leak the state buffer
allocated in access_handler. I confirmed that this does plug
an actual leak.
(proxy_query, proxy_bucket_post, proxy_object_post):
These are in the same vein, but were fixed by inspection,
since tests don't yet exercise these.
diff --git a/rest.c b/rest.c
index 475adc1..a2fffc3 100644
--- a/rest.c
+++ b/rest.c
@@ -825,6 +825,7 @@ proxy_query (void *cctx, struct MHD_Connection *conn, const char
*url,
MHD_add_response_header(resp,"Content-Type","text/xml");
MHD_queue_response(conn,MHD_HTTP_OK,resp);
MHD_destroy_response(resp);
+ free_ms(ms);
}
return MHD_YES;
@@ -1191,6 +1192,7 @@ proxy_bucket_post (void *cctx, struct MHD_Connection *conn, const
char *url,
}
MHD_queue_response(conn,rc,resp);
MHD_destroy_response(resp);
+ free_ms(ms);
}
return MHD_YES;
@@ -1308,6 +1310,7 @@ proxy_object_post (void *cctx, struct MHD_Connection *conn, const
char *url,
}
MHD_queue_response(conn,rc,resp);
MHD_destroy_response(resp);
+ free_ms(ms);
}
return MHD_YES;
@@ -1471,6 +1474,7 @@ proxy_update_prov (void *cctx, struct MHD_Connection *conn, const
char *url,
}
MHD_queue_response(conn,rc,resp);
MHD_destroy_response(resp);
+ free_ms(ms);
}
return MHD_YES;
-----------------------------------------------------------------------
Summary of changes:
rest.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
repo.or.cz automatic notification. Contact project admin jim(a)meyering.net
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
iwhd.git ("image warehouse daemon")