Parent: 4b3fe69df7c77043d8f4b39a34431e4ef19c2071
Author: Bastien Nocera <hadess@hadess.net>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-07-03 17:37:24
Tree: 5924655f6f0b5bf9ecba457406d14592936efeb4
obexd: Fix leak in backup_object struct Error: RESOURCE_LEAK (CWE-772): [#def37] [important] obexd/plugins/pcsuite.c:370:2: alloc_fn: Storage is returned from allocation function "g_path_get_basename". obexd/plugins/pcsuite.c:370:2: var_assign: Assigning: "obj->cmd" = storage returned from "g_path_get_basename(name)". obexd/plugins/pcsuite.c:379:3: leaked_storage: Freeing "obj" without freeing its pointer field "cmd" leaks the storage that "cmd" points to. 377| 378| if (send_backup_dbus_message("open", obj, size) == FALSE) { 379|-> g_free(obj); 380| obj = NULL; 381| }
Diffstat
| M | obexd/plugins/pcsuite.c | | | 1 | + |
1 files changed, 1 insertions(+), 0 deletions(-)