diff options
Diffstat (limited to 'src/gsmd/sms_cb.c')
-rw-r--r-- | src/gsmd/sms_cb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gsmd/sms_cb.c b/src/gsmd/sms_cb.c index 5ca8956..5c62333 100644 --- a/src/gsmd/sms_cb.c +++ b/src/gsmd/sms_cb.c @@ -62,8 +62,7 @@ struct gsmd_sms_storage { static int usock_cpms_cb(struct gsmd_atcmd *cmd, void *ctx, char *resp) { struct gsmd_user *gu = ctx; - struct gsmd_ucmd *ucmd = malloc(sizeof(*ucmd) + - sizeof(struct gsmd_sms_storage)); + struct gsmd_ucmd *ucmd = ucmd_alloc(sizeof(struct gsmd_sms_storage)); DEBUGP("entering(cmd=%p, gu=%p)\n", cmd, gu); |