X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=bt-api%2Fbt-rfcomm-server.c;h=ee38cc0094f0cee55f14b26e6136e208fae1a3ef;hb=3dfdac8ea327c15bc827d216801e8c6456b0dd11;hp=c54930822d0f6ac166019e9a03e6d10d50d2c9af;hpb=ec6dad57a4c243ba93a6280e09ee61f8dfa3d0cb;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git diff --git a/bt-api/bt-rfcomm-server.c b/bt-api/bt-rfcomm-server.c index c549308..ee38cc0 100644 --- a/bt-api/bt-rfcomm-server.c +++ b/bt-api/bt-rfcomm-server.c @@ -448,6 +448,7 @@ static rfcomm_info_t *__register_method() object_id = _bt_register_new_conn(path, new_server_connection); if (object_id < 0) { __rfcomm_delete_id(id); + g_free(path); return NULL; } info = g_new0(rfcomm_info_t, 1);