Skip to contentSkip to conversation

driver: ublox: fix memory leak in release

PATCH Applied Dragos Tatulea 2 participants 2 messages Nov 14, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 driver: ublox: fix memory leak in release

---
 drivers/ubloxmodem/gprs-context.c | 1 +
 1 file changed, 1 insertion(+)
drivers/ubloxmodem/gprs-context.c +1 -0
index 7ef05b7..3069e88 100644
@@ -442,6 +442,7 @@ static void ublox_gprs_context_remove(struct ofono_gprs_context *gc)
 	g_at_chat_unref(gcd->chat);
 
 	memset(gcd, 0, sizeof(*gcd));
+	g_free(gcd);
 }
 
 static struct ofono_gprs_context_driver driver = {
Signature · 1 line
2.7.4
#1 lore raw

Hi Dragos,

Quoted 4 lines · Dragos Tatulea
---
  drivers/ubloxmodem/gprs-context.c | 1 +
  1 file changed, 1 insertion(+)

Applied, thanks.

Regards,
-Denis