diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-04-02 15:20:53 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-04-02 16:48:43 +0300 |
commit | 17e6a279586e08fd6f9bd21337ca647bed3b5ed6 (patch) | |
tree | a75743720ac80acb915ce479daa9490898495021 /gobex | |
parent | 2cbff7410bd025b076d0040dfc73c00a468f0279 (diff) | |
download | bluez-17e6a279586e08fd6f9bd21337ca647bed3b5ed6.tar.gz |
gobex: Fix memory leak
This fixes the following leak introduced by the authentication patches:
16 bytes in 1 blocks are definitely lost in loss record 62 of 158
at 0x4C291D4: calloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x4E7FEC6: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x403226: prepare_auth_rsp.isra.4 (gobex.c:564)
by 0x404DE4: handle_response (gobex.c:1015)
by 0x405C7B: incoming_data (gobex.c:1351)
by 0x4E7A2A5: g_main_context_dispatch (in
/usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E7A627: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E7AA39: g_main_loop_run (in
/usr/lib64/libglib-2.0.so.0.3800.2)
by 0x40DC34: test_auth (test-gobex.c:966)
by 0x4E9E5E0: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E9E7A5: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E9EB1A: g_test_run_suite (in
/usr/lib64/libglib-2.0.so.0.3800.2)
Diffstat (limited to 'gobex')
-rw-r--r-- | gobex/gobex.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gobex/gobex.c b/gobex/gobex.c index 4185ed17c..053102d91 100644 --- a/gobex/gobex.c +++ b/gobex/gobex.c @@ -604,6 +604,7 @@ static void prepare_auth_rsp(GObex *obex, GObexPacket *rsp) g_obex_packet_add_header(rsp, hdr); g_obex_apparam_free(authrsp); + g_free(result); done: g_obex_apparam_free(obex->authchal); |