Parent: 2c4ce67de70c06ec5f66bdb1bf22803de4ad9555
Author: Atul Rai <a.rai@samsung.com>
Committer: Szymon Janc <szymon.janc@tieto.com>
Date: 2015-07-29 10:25:25
Tree: 36f30e6653ea6baa62f96fd198fe9bd49caf8a9c
android/client: Fix memory leak while using realloc() While reallocating space to store additional "remote device set" using realloc, if realloc() fails, the original block is left untouched but reference to that block is lost as NULL is assigned to remote_devices. The original block needs to be freed before return.
Diffstat
| M | android/client/if-bt.c | | | 9 | +++++++++ |
1 files changed, 9 insertions(+), 0 deletions(-)