Hi Zhenhua,

On 07/21/2010 01:41 AM, Zhenhua Zhang wrote:
> Avoid the memory leak of modem name.
> ---
>  src/modem.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> @@ -1495,6 +1495,7 @@ void ofono_modem_remove(struct ofono_modem *modem)
>       if (modem->driver_type)
>               g_free(modem->driver_type);
>  
> +     g_free(modem->name);
>       g_free(modem->path);
>       g_free(modem);
>  }

Good catch.  Patch has been applied, thanks.

Regards,
-Denis
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to