HS 2.0R2: Fix memory leak on error path in hs20-osu-client
fqdn was not freed before return in case the server uses an unsupported location for the PPS MO in the addMO command. Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
This commit is contained in:
parent
c5ca73d1f7
commit
59bae7463a
1 changed files with 1 additions and 0 deletions
|
@ -542,6 +542,7 @@ int hs20_add_pps_mo(struct hs20_osu_client *ctx, const char *uri,
|
||||||
uri);
|
uri);
|
||||||
write_result(ctx, "Unsupported location for addMO to "
|
write_result(ctx, "Unsupported location for addMO to "
|
||||||
"add PPS MO (extra directory): '%s'", uri);
|
"add PPS MO (extra directory): '%s'", uri);
|
||||||
|
free(fqdn);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
*pos = '\0'; /* remove trailing slash and PPS node name */
|
*pos = '\0'; /* remove trailing slash and PPS node name */
|
||||||
|
|
Loading…
Reference in a new issue