Fix a memleak
commitf692ca29e7aed788fc78f1f00abad5afcc2de7b8
authorQiao Yang <geoyang@ironport.com>
Fri, 5 Sep 2008 12:08:09 +0000 (5 14:08 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 8 Sep 2008 11:51:02 +0000 (8 13:51 +0200)
tree7bf2fbc166c8d3d301ca34952fc05af42e9fc659
parentaabd9385beae2650c507d06cc3c24a0415e26fd2
Fix a memleak

request.extra_data is not freed if there is no extra_data in response or
when there is some error happens in processing. This patch will free the
buffer right after processing a request before sending back a response.
(cherry picked from commit be6f12273f171a3eb1967d2299064e57d737f6a4)
(cherry picked from commit c1fcc41bd96652b175b41421a5f6a9396c75e67f)
source/winbindd/winbindd.c