comparison src/account.c @ 14079:25a2b762cd61

[gaim-migrate @ 16700] stuff allocated by g_malloc() should be freed with g_free() committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 11 Aug 2006 02:42:13 +0000
parents 8bda65b88e49
children
comparison
equal deleted inserted replaced
14078:20a17388c767 14079:25a2b762cd61
694 name = xmlnode_get_data(child); 694 name = xmlnode_get_data(child);
695 } 695 }
696 696
697 if ((protocol_id == NULL) || (name == NULL)) 697 if ((protocol_id == NULL) || (name == NULL))
698 { 698 {
699 free(protocol_id); 699 g_free(protocol_id);
700 free(name); 700 g_free(name);
701 return NULL; 701 return NULL;
702 } 702 }
703 703
704 ret = gaim_account_new(name, protocol_id); 704 ret = gaim_account_new(name, protocol_id);
705 free(name); 705 g_free(name);
706 free(protocol_id); 706 g_free(protocol_id);
707 707
708 /* Read the password */ 708 /* Read the password */
709 child = xmlnode_get_child(node, "password"); 709 child = xmlnode_get_child(node, "password");
710 if ((child != NULL) && ((data = xmlnode_get_data(child)) != NULL)) 710 if ((child != NULL) && ((data = xmlnode_get_data(child)) != NULL))
711 { 711 {