eeze_net: fix a potentional memory leak case 00/258700/1
authorWonki Kim <wonki_.kim@samsung.com>
Thu, 24 Dec 2020 02:43:28 +0000 (11:43 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Mon, 24 May 2021 10:37:31 +0000 (19:37 +0900)
commit6002665c17e6624a1c22a5a6fe268b2e98d341f7
treeeb1b0b8f41ed71fe6591cb7ef3aaa3c4ee7e8699
parent321d46aae68b7d543e0acc9f779a063a7151bc41
eeze_net: fix a potentional memory leak case

Summary:
if `net` equals zero and `device` has allocated properly at the same time, memory leaks.
this patch fixes it.

Reviewers: Hermet, bu5hm4n, zmike

Reviewed By: Hermet

Subscribers: vtorri, cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D12221

Change-Id: Ie70eb0da84b29c23d3192f03bb09d6a6593381e4
src/lib/eeze/eeze_net.c