Silence some Coverity warnings

This commit is contained in:
twinaphex 2017-11-26 01:06:48 +01:00
parent 0dfb6e2c64
commit 9875bbbd7d
3 changed files with 12 additions and 15 deletions

View File

@ -3549,7 +3549,6 @@ bool config_save_autoconf_profile(const char *path, unsigned user)
config_file_free(conf);
free(buf);
free(autoconf_file);
if (path_new)
free(path_new);
return ret;

View File

@ -274,6 +274,7 @@ void filebrowser_parse(void *data, unsigned type_data)
}
end:
if (info)
menu_entries_prepend(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_PARENT_DIRECTORY),
path,

View File

@ -338,15 +338,12 @@ bool netplay_lan_ad_server(netplay_t *netplay)
snprintf(port_str, 6, "%hu", ntohs(((struct sockaddr_in*)(&their_addr))->sin_port));
if (getaddrinfo_retro(reply_addr, port_str, &hints, &our_addr) < 0)
continue;
else
{
RARCH_LOG ("[discovery] sending reply to %s \n", reply_addr);
/* And send it */
sendto(lan_ad_server_fd, (const char*)&ad_packet_buffer,
sizeof(struct ad_packet), 0, our_addr->ai_addr, our_addr->ai_addrlen);
}
if (our_addr)
freeaddrinfo_retro(our_addr);
}
else