Diff between d2277dfa5f1480781463fa7ee8a1accc66a9f485 and 2ecd317c22e4acdba3963429fbfc7cdec267c5b2
Changed Files
| File | Additions | Deletions | Status |
| src/advertising.c | +1 | -0 | modified |
Full Patch
diff --git a/src/advertising.c b/src/advertising.c
index 441d0a2..b087b48 100644
--- a/src/advertising.c
+++ b/src/advertising.c
@@ -752,6 +752,7 @@ static int refresh_adv(struct btd_adv_client *client, mgmt_request_func_t func)
scan_rsp = generate_scan_rsp(client, &flags, &scan_rsp_len);
if (!scan_rsp && scan_rsp_len) {
error("Scan data couldn't be generated.");
+ free(adv_data);
return -EINVAL;
}