Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[mms-engine] Fixed memory leak on error path
  • Loading branch information
monich committed Aug 15, 2020
1 parent ee60e10 commit 3a0b9d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mms-lib/src/mms_dispatcher.c
Expand Up @@ -671,6 +671,7 @@ mms_dispatcher_send_message(
id, imsi, to, cc, bcc, subject, flags, parts, nparts, error))) {
return default_imsi ? default_imsi : g_strdup(imsi);
}
g_free(default_imsi);
} else {
MMS_ERROR(error, MMS_LIB_ERROR_NOSIM,
"No IMSI is provided and none is available");
Expand Down

0 comments on commit 3a0b9d0

Please sign in to comment.