diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2018-06-28 00:07:32 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2018-06-28 00:09:27 +0200 |
commit | 066c9c1e403a156e5d8da593cd0861646a7ae1d9 (patch) | |
tree | 2dbe0f41ef8fd54e800ac3541d05112dcde78a80 | |
parent | 746cf54b112b223b9712453fe9b154c04acb8c4b (diff) | |
download | ModemManager-066c9c1e403a156e5d8da593cd0861646a7ae1d9.tar.gz |
libmm-glib,location-gps-raw: plug memleak
==8663== 1 bytes in 1 blocks are definitely lost in loss record 5 of 4,864
==8663== at 0x4C2CEDF: malloc (vg_replace_malloc.c:299)
==8663== by 0x669FAC9: g_malloc (in /usr/lib/libglib-2.0.so.0.5600.1)
==8663== by 0x66B9AEA: g_strndup (in /usr/lib/libglib-2.0.so.0.5600.1)
==8663== by 0x66ACE52: g_match_info_fetch (in /usr/lib/libglib-2.0.so.0.5600.1)
==8663== by 0x4E96DD2: mm_location_gps_raw_add_trace (mm-location-gps-raw.c:208)
==8663== by 0x18721E: mm_iface_modem_location_gps_update (mm-iface-modem-location.c:264)
==8663== by 0x1B9C7F: loc_location_nmea_indication_cb (mm-shared-qmi.c:712)
==8663== by 0x640C9E7: g_cclosure_marshal_VOID__BOXEDv (in /usr/lib/libgobject-2.0.so.0.5600.1)
==8663== by 0x6409C95: ??? (in /usr/lib/libgobject-2.0.so.0.5600.1)
==8663== by 0x64259E8: g_signal_emit_valist (in /usr/lib/libgobject-2.0.so.0.5600.1)
==8663== by 0x642612F: g_signal_emit (in /usr/lib/libgobject-2.0.so.0.5600.1)
==8663== by 0x54AAB2D: process_indication (qmi-loc.c:7454)
Reported by: Thomas Weißschuh <thomas@weissschuh.net>
-rw-r--r-- | libmm-glib/mm-location-gps-raw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmm-glib/mm-location-gps-raw.c b/libmm-glib/mm-location-gps-raw.c index 4418eff29..dfcd52bd1 100644 --- a/libmm-glib/mm-location-gps-raw.c +++ b/libmm-glib/mm-location-gps-raw.c @@ -374,6 +374,8 @@ finalize (GObject *object) if (self->priv->gpgga_regex) g_regex_unref (self->priv->gpgga_regex); + g_free (self->priv->utc_time); + G_OBJECT_CLASS (mm_location_gps_raw_parent_class)->finalize (object); } |