diff mbox

[Fixed,Memory,leak] fqdn is not freed before return

Message ID 1435062880-3417-1-git-send-email-n.chaprana@samsung.com
State Accepted
Headers show

Commit Message

Nishant Chaprana June 23, 2015, 12:34 p.m. UTC
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
---
 hs20/client/osu_client.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Jouni Malinen June 26, 2015, 10:10 p.m. UTC | #1
Thanks, applied.
diff mbox

Patch

diff --git a/hs20/client/osu_client.c b/hs20/client/osu_client.c
index 478d940..0315f7b 100644
--- a/hs20/client/osu_client.c
+++ b/hs20/client/osu_client.c
@@ -542,6 +542,7 @@  int hs20_add_pps_mo(struct hs20_osu_client *ctx, const char *uri,
 				   uri);
 			write_result(ctx, "Unsupported location for addMO to "
 				     "add PPS MO (extra directory): '%s'", uri);
+			free(fqdn);
 			return -1;
 		}
 		*pos = '\0'; /* remove trailing slash and PPS node name */