Memory leak in 0007-src-service.c-dbus-backends-actions.c-Special-treatm.patch
The patch introduces a memory leak in src/utils.c:get_distro_bts_url()
, the resulting string is static in case of "ubuntu-touch" and allocated otherwise, the return value is declared const char *
and not expected to be allocated by consumers.
Correction: all the functions in src/utils.c
store heap allocated strings in static variables and leak memory, even tough in a controlled manner. This should probably addressed in a follow-up upstream, e.g. by parsing all the needed information on startup, storing the allocated strings in a context struct, GObject or so.
Edited by Guido Berhörster