diff options
author | Denis Kenzior <denkenz@gmail.com> | 2018-12-20 15:43:08 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2018-12-27 18:18:51 -0600 |
commit | d5f117be802e786c6672fb20d234a5ea0d53afa0 (patch) | |
tree | 4369296c60216a124edc815c42756f3db8d33ec2 /src/smsutil.c | |
parent | 4e74b7b182713b472a0ddea163db288c65a5112d (diff) | |
download | ofono-d5f117be802e786c6672fb20d234a5ea0d53afa0.tar.gz |
util: Convert pack7_bit / unpack_7bit to use l_malloc
Diffstat (limited to 'src/smsutil.c')
-rw-r--r-- | src/smsutil.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/smsutil.c b/src/smsutil.c index 971717cf..60438818 100644 --- a/src/smsutil.c +++ b/src/smsutil.c @@ -33,6 +33,7 @@ #include <unistd.h> #include <glib.h> +#include <ell/ell.h> #include "util.h" #include "storage.h" @@ -677,7 +678,7 @@ gboolean sms_decode_address_field(const unsigned char *pdu, int len, utf8 = convert_gsm_to_utf8(res, written, NULL, NULL, 0); - g_free(res); + l_free(res); if (utf8 == NULL) return FALSE; @@ -4736,7 +4737,7 @@ char *ussd_decode(int dcs, int len, const unsigned char *data) return NULL; utf8 = convert_gsm_to_utf8(unpacked, written, NULL, NULL, 0); - g_free(unpacked); + l_free(unpacked); break; } |