OSDN Git Service

attrib: Fix memory leak on low memory condition
authorAnderson Lizardo <anderson.lizardo@openbossa.org>
Tue, 2 Apr 2013 15:07:43 +0000 (11:07 -0400)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 4 Apr 2013 11:50:59 +0000 (14:50 +0300)
commit03f2256f6a0b43c2221812a248614653ec333f0c
treed3a1261efca9cde84cee198b27159b67efb74bc1
parente39bad17d19e417342431c366dac766613b9c7d6
attrib: Fix memory leak on low memory condition

If g_try_new0() fails due to low memory condition, "list" should be
freed before returning from primary_all_cb().
attrib/gatt.c