Commit: 8b51fbcba903eec102c9cec57adcaf10c35b15dd
Parent: c66ef8ca8e42c663f17798fa6cfee29c386d202a
Author: Steve Grubb <sgrubb@redhat.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2021-05-19 20:51:47
Tree: 1febba796dfdcdfd720c64d62abedf3e81d6c5bf

Fix memory leaks in obex This patch fixes a couple memory leaks. In filesystem, g_file_get_contents allocates fresh memory to buf. It needs to be freed after conversion to a GString object. Destination was missed on an error path as is mld.

Diffstat

M obexd/plugins/ftp.c | 8 ++++++- -
M obexd/plugins/messages-dummy.c | 1 +

2 files changed, 7 insertions(+), 2 deletions(-)

View Full Diff | Patch