ofono: Fix add_newtork() error path
authordaniel.wagner@bmw-carit.de <daniel.wagner@bmw-carit.de>
Tue, 21 Jun 2011 09:26:05 +0000 (11:26 +0200)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Tue, 21 Jun 2011 09:54:43 +0000 (11:54 +0200)
commitaefaadcf4fc8c9a5da8b4b6f843d4cf93ab4190c
treee6b76b8614e765b9743e8b630f1f47a65f2f6ac7
parent3723f489f57481fdc996371ef4e3c1a47b6ff770
ofono: Fix add_newtork() error path

After add_network() added the newly created network object
to the network_hash and add_netork() bails out with an
error the network_remove() callback will called from network.c.

Therefore we don't have to free the network object in
the error path of add_network(). It will be removed
by the network_remove() callback.
plugins/ofono.c