diff options
author | Pyun DoHyun <dh79.pyun@samsung.com> | 2015-06-23 21:52:49 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@review.vlan103.tizen.org> | 2015-06-23 21:52:49 -0700 |
commit | 495ff5405cb4018cd0237133143ca7fc52874d5a (patch) | |
tree | 03dc9f00d2a58bc8876d5a220e09260d44a9504f | |
parent | 2c49842809e4ad7c48b3802897e54fb56b5c5ddf (diff) | |
parent | 91a1d91428a38818de20b6372cfef037b26c4ab0 (diff) | |
download | bluetooth-495ff5405cb4018cd0237133143ca7fc52874d5a.tar.gz bluetooth-495ff5405cb4018cd0237133143ca7fc52874d5a.tar.bz2 bluetooth-495ff5405cb4018cd0237133143ca7fc52874d5a.zip |
Merge "Fixed Memory Leak in function __bt_convert_string_to_uuid" into tizen
-rw-r--r-- | src/bluetooth-adapter.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bluetooth-adapter.c b/src/bluetooth-adapter.c index 36ec2f9..daf82c3 100644 --- a/src/bluetooth-adapter.c +++ b/src/bluetooth-adapter.c @@ -1401,8 +1401,10 @@ static int __bt_convert_string_to_uuid(const char *string, char **uuid, int *bit ret = sscanf(string, "%08x-%04hx-%04hx-%04hx-%08x%04hx", &val0, &val1, &val2, &val3, &val4, &val5); - if (ret != 6) + if (ret != 6) { + g_free(data); return BT_ERROR_OPERATION_FAILED; + } val0 = htonl(val0); val1 = htons(val1); |