bluetooth: Fix Memory Leak 35/60035/2
authorNiraj Kumar Goit <niraj.g@samsung.com>
Mon, 22 Feb 2016 14:20:53 +0000 (19:50 +0530)
committerNiraj Kumar Goit <niraj.g@samsung.com>
Tue, 23 Feb 2016 07:25:51 +0000 (12:55 +0530)
commitcf570f852323cbb268e7c035aa520015c398622a
tree2979bd570c258bb376b231c99df83cb372198b9a
parentcdd2029ca7173fb2231f7cd0b8be8ef7503f4034
bluetooth: Fix Memory Leak

To avoid memory leak issue allocate memory to tethering structure
after all error checks.

Change-Id: If10578acce2eb8eedbdbc96f73a30c79c1a7a125
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
plugins/bluetooth.c