forked from enlightenment/efl
elm_map: Fixed a leak when ecore_file_download_full fails
Summary: The url variable used for ecore_file_download_full api was not being freed when the api failed @fix Test Plan: elementary_test->map Reviewers: seoz, daniel, raster Reviewed By: raster CC: govi Differential Revision: https://phab.enlightenment.org/D692
This commit is contained in:
parent
73b16ef210
commit
69bdc47081
|
@ -152,3 +152,4 @@ suxia li <suxia.li@samsung.com>
|
|||
yan.wang <yan.wang@linux.intel.com>
|
||||
Anand <anand.km@samsung.com>
|
||||
Subhransu Sekhar Mohanty <sub.mohanty@samsung.com>
|
||||
Rajesh P S <rajeshps@samsung.com>
|
||||
|
|
|
@ -154,6 +154,7 @@
|
|||
* @author yan.wang <yan.wang@@linux.intel.com>
|
||||
* @author Anand <anand.km@@samsung.com>
|
||||
* @author Subhransu Sekhar Mohanty <sub.mohanty@@samsung.com>
|
||||
* @author Rajesh P S <rajeshps@@samsung.com>
|
||||
*
|
||||
* Please contact <enlightenment-devel@lists.sourceforge.net> to get in
|
||||
* contact with the developers and maintainers.
|
||||
|
|
|
@ -3121,6 +3121,7 @@ _name_request(const Evas_Object *obj,
|
|||
free(name->fname);
|
||||
free(name);
|
||||
free(fname);
|
||||
free(url);
|
||||
return NULL;
|
||||
}
|
||||
INF("Name requested from %s to %s", url, name->fname);
|
||||
|
@ -3174,6 +3175,7 @@ _name_list_request(const Evas_Object *obj,
|
|||
ERR("Can't request Name from %s to %s", url, name_list->fname);
|
||||
free(name_list->fname);
|
||||
free(name_list);
|
||||
free(url);
|
||||
free(fname);
|
||||
return NULL;
|
||||
}
|
||||
|
@ -4393,6 +4395,7 @@ _elm_map_route_add(Eo *obj, Elm_Map_Data *sd, Elm_Map_Route_Type type, Elm_Map_R
|
|||
ERR("Can't request Route from %s to %s", url, route->fname);
|
||||
free(route->fname);
|
||||
free(route);
|
||||
free(url);
|
||||
return ret;
|
||||
}
|
||||
INF("Route requested from %s to %s", url, route->fname);
|
||||
|
|
Loading…
Reference in New Issue