From: Jukka Rissanen Date: Wed, 2 May 2012 09:56:51 +0000 (+0300) Subject: wispr: Possible memory leak in error case X-Git-Tag: 0.85~35 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa9676ae82da7932413a73000d6d3930a455946c;p=platform%2Fupstream%2Fconnman.git wispr: Possible memory leak in error case --- diff --git a/src/wispr.c b/src/wispr.c index 2126197..034cced 100644 --- a/src/wispr.c +++ b/src/wispr.c @@ -463,8 +463,10 @@ static gboolean wispr_route_request(const char *address, int ai_family, break; } - if (result < 0) + if (result < 0) { + g_free(route); return FALSE; + } route->address = strdup(address); route->if_index = if_index;