Possible memory leakage in daemon/mount.c
Submitted by tyang
Assigned to gvf..@..e.bugs
Link to original bug (#776569)
Description
In function spawn_mount:
if (!g_spawn_command_line_async (exec, &error)) { g_dbus_interface_skeleton_unexport (G_DBUS_INTERFACE_SKELETON (data->spawner)); mount_finish (data, error); g_error_free (error); }
/* TODO: Add a timeout here to detect spawned app crashing */
g_object_unref (connection); g_free (exec); }
Pointer data will not be free-ed if g_spawn_command_line_async returns true. Here I think we should call mount_finish (data, NULL), which calls the data->callback and free the data, to finish the whole process.
Thanks
Version: git master