]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/journal-remote/microhttpd-util.c
microhttpd-util: avoid double free on error
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 18 Mar 2014 02:13:47 +0000 (22:13 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 18 Mar 2014 04:03:14 +0000 (00:03 -0400)
commit4dd5da7f7d37f964fe95b0f0d451d7843a34591d
tree1be85ebc78934510176bb6beb322e5fc013b23a9
parent9786767a36803f6a27870e6f2a666113565e19d2
microhttpd-util: avoid double free on error

It seems that resources are properly deallocated by MHD_destroy_response,
even if enqueuing the request fails.

Also replace a trivial printf with alloca and fixup log message
(it'll now be something like "Connection from CN=some.host.name",
which seems clear enough.)
src/journal/microhttpd-util.c