From: DoHyun Pyun Date: Wed, 9 Jun 2021 23:25:05 +0000 (+0900) Subject: Fix the coverity issue (Memory leak) X-Git-Tag: accepted/tizen/unified/20210616.132535^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F61%2F259561%2F1;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git Fix the coverity issue (Memory leak) Change-Id: I5d8c9e91f73e005606f274d071983d36b49c5b14 Signed-off-by: DoHyun Pyun --- 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);