OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7240dc6
)
agent: Free the agent request properly
author
Syam Sidhardhan
<s.syam@samsung.com>
Thu, 12 Apr 2012 15:02:54 +0000
(20:32 +0530)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Fri, 13 Apr 2012 09:36:31 +0000
(12:36 +0300)
In the case of error, Unref the req->msg which is allocated inside the
pincode_request_new()
src/agent.c
patch
|
blob
|
history
diff --git
a/src/agent.c
b/src/agent.c
index
41eb3a8
..
7f2d13c
100644
(file)
--- a/
src/agent.c
+++ b/
src/agent.c
@@
-457,7
+457,7
@@
int agent_request_pincode(struct agent *agent, struct btd_device *device,
return 0;
failed:
-
g_free(req
);
+
agent_request_free(req, FALSE
);
return err;
}