瀏覽代碼

Free mem allocated by getaddrinfo

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
(cherry picked from commit 390391acba6490c67b659e8a447200e16e37c2d0)
Angus Salkeld 14 年之前
父節點
當前提交
a973b7cfb0
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      exec/totemip.c

+ 1 - 0
exec/totemip.c

@@ -304,6 +304,7 @@ int totemip_parse(struct totem_ip_address *totemip, const char *addr, int family
 	else
 		memcpy(totemip->addr, &sa6->sin6_addr, sizeof(struct in6_addr));
 
+	freeaddrinfo(ainfo);
 	return 0;
 }