From 4ad1aa7eff46216e1f78a860fb2e1437e886ed69 Mon Sep 17 00:00:00 2001 From: Gregor Richards Date: Wed, 30 Nov 2016 19:21:33 -0500 Subject: [PATCH] Don't double-free net_ifinfo structure. --- libretro-common/net/net_natt.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libretro-common/net/net_natt.c b/libretro-common/net/net_natt.c index 851f5e5a65..ffc871c131 100644 --- a/libretro-common/net/net_natt.c +++ b/libretro-common/net/net_natt.c @@ -175,10 +175,7 @@ bool natt_open_port_any(struct natt_status *status, uint16_t port, enum socket_p if ((list = (struct net_ifinfo *) calloc(1, sizeof(struct net_ifinfo))) == NULL) return false; if (!net_ifinfo_new(list)) - { - free(list); return false; - } /* loop through them */ for (i = 0; i < list->size; i++)