mirror of git://git.sysmocom.de/ofono
gathdlc: Fix memory leak
This commit is contained in:
parent
e244e2d42a
commit
afce582246
|
@ -425,6 +425,8 @@ void g_at_hdlc_unref(GAtHDLC *hdlc)
|
|||
|
||||
g_free(hdlc->decode_buffer);
|
||||
|
||||
g_timer_destroy(hdlc->timer);
|
||||
|
||||
if (hdlc->in_read_handler)
|
||||
hdlc->destroyed = TRUE;
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue