drivers: Update to new convert_ucs2_to_gsm API

Use l_free instead of g_free since the above API was changed to use ell
This commit is contained in:
Denis Kenzior 2018-12-20 19:47:35 -06:00
parent c4ed942e40
commit 88ff5d36dd
1 changed files with 3 additions and 2 deletions

View File

@ -28,6 +28,7 @@
#include <stdio.h> #include <stdio.h>
#include <glib.h> #include <glib.h>
#include <ell/ell.h>
#include <ofono/log.h> #include <ofono/log.h>
#include <ofono/modem.h> #include <ofono/modem.h>
@ -87,12 +88,12 @@ static const unsigned char *ucs2_gsm_to_packed(const char *content,
return NULL; return NULL;
if (written > 182) { if (written > 182) {
g_free(gsm); l_free(gsm);
return NULL; return NULL;
} }
packed = pack_7bit_own_buf(gsm, written, 0, true, msg_len, 0, msg); packed = pack_7bit_own_buf(gsm, written, 0, true, msg_len, 0, msg);
g_free(gsm); l_free(gsm);
return packed; return packed;
} }