Commit c345ce53 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vlc_inet_pton: fix memory leak

parent 119a49ff
......@@ -723,9 +723,11 @@ int vlc_inet_pton (int af, const char *src, void *dst)
break;
#endif
default:
freeaddrinfo (res);
return -1;
}
memcpy (dst, data, len);
freeaddrinfo (res);
return 1;
#else /* HAVE_INET_PTON */
return inet_pton( af, src, dst );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment