Code Review
/
apps
/
agl-service-homescreen.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix potential memory leak
[apps/agl-service-homescreen.git]
/
src
/
hs-proxy.cpp
diff --git
a/src/hs-proxy.cpp
b/src/hs-proxy.cpp
index
33e5d53
..
33cfce3
100644
(file)
--- a/
src/hs-proxy.cpp
+++ b/
src/hs-proxy.cpp
@@
-154,7
+154,6
@@
int HS_AfmMainProxy::detail(afb_api_t api, const std::string &id, struct json_ob
*/
void HS_AfmMainProxy::start(struct hs_instance *instance, afb_req_t request, const std::string &id)
{
*/
void HS_AfmMainProxy::start(struct hs_instance *instance, afb_req_t request, const std::string &id)
{
- struct json_object *args = json_object_new_string(id.c_str());
struct closure_data *cdata;
/* tentatively store the client and client context, as the afb_req_t
struct closure_data *cdata;
/* tentatively store the client and client context, as the afb_req_t
@@
-187,5
+186,5
@@
void HS_AfmMainProxy::start(struct hs_instance *instance, afb_req_t request, con
AFB_WARNING("Failed to handle subcribe\n");
}
AFB_WARNING("Failed to handle subcribe\n");
}
- api_call(request->api, _afm_main, __FUNCTION__,
args
, cdata);
+ api_call(request->api, _afm_main, __FUNCTION__,
json_object_new_string(id.c_str())
, cdata);
}
}