summaryrefslogtreecommitdiff
authorAleksander Morgado <aleksander@lanedo.com>2012-12-12 11:21:17 (GMT)
committer Aleksander Morgado <aleksander@lanedo.com>2012-12-12 11:21:17 (GMT)
commitc43c8958d09ba93909c3a2aebd691df9872a10e8 (patch) (side-by-side diff)
tree92ce85e72010115518f6fc08fffeaec0eb991da1
parent9d5e2c608dc75fdb5a660829a77faafe5e686312 (diff)
downloadModemManager-c43c8958d09ba93909c3a2aebd691df9872a10e8.zip
ModemManager-c43c8958d09ba93909c3a2aebd691df9872a10e8.tar.gz
sms-part: plug memleak
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--src/mm-sms-part.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mm-sms-part.c b/src/mm-sms-part.c
index f3957d0..f607407 100644
--- a/src/mm-sms-part.c
+++ b/src/mm-sms-part.c
@@ -485,8 +485,7 @@ mm_sms_part_new_from_pdu (guint index,
}
part = mm_sms_part_new_from_binary_pdu (index, pdu, pdu_len, error);
- if (!part)
- g_free (pdu);
+ g_free (pdu);
return part;
}