diff options
author | Syam Sidhardhan <s.syam@samsung.com> | 2016-02-03 19:52:46 +0530 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2016-02-11 15:53:07 +0200 |
commit | 8175785680f29b923b63d30a54210f15ac9f80dc (patch) | |
tree | 686068c5191a998207072983f041227fe0ad8df5 /obexd | |
parent | 45ad006223b381e715b951d4df87587f4bd6a5f2 (diff) | |
download | bluez-8175785680f29b923b63d30a54210f15ac9f80dc.tar.gz |
obexd: client: Fix memory leaks
We have to free the allocated memory for data and its members.
Diffstat (limited to 'obexd')
-rw-r--r-- | obexd/client/session.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/obexd/client/session.c b/obexd/client/session.c index ef998f988..5f981bf54 100644 --- a/obexd/client/session.c +++ b/obexd/client/session.c @@ -1179,6 +1179,7 @@ guint obc_session_setpath(struct obc_session *session, const char *path, if (!data->remaining || !data->remaining[0]) { error("obc_session_setpath: invalid path %s", path); g_set_error(err, OBEX_IO_ERROR, -EINVAL, "Invalid argument"); + setpath_data_free(data); return 0; } |