Fix the memory leak 07/63107/1
authorHyuk Lee <hyuk0512.lee@samsung.com>
Tue, 22 Mar 2016 06:29:42 +0000 (15:29 +0900)
committerHyuk Lee <hyuk0512.lee@samsung.com>
Tue, 22 Mar 2016 06:29:42 +0000 (15:29 +0900)
Change-Id: I4d103d8b79dfe9fd6d5ea379b2e8943f702cf45d
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
pb-agent/bluetooth_pb_vcard.c

index 7c10f35..0d1637c 100755 (executable)
@@ -2055,7 +2055,10 @@ static gchar **__bluetooth_pb_contact_tel_param(contacts_record_h number)
                        (gint *)&type);
 
        if (status != CONTACTS_ERROR_NONE)
+       {
+               g_free(strv);
                return NULL;
+       }
 
        if (type & CONTACTS_NUMBER_TYPE_HOME) {
                strv[i] = g_strdup("HOME");