Commit 3a0b9d01 authored by Slava Monich's avatar Slava Monich

[mms-engine] Fixed memory leak on error path

parent ee60e10f
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment