bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#32604: 26.1.50; memory leak in connect_network_socket


From: YAMAMOTO Mitsuharu
Subject: bug#32604: 26.1.50; memory leak in connect_network_socket
Date: Sat, 01 Sep 2018 14:46:38 +0900
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Goj┼Ź) APEL/10.8 EasyPG/1.0.0 Emacs/25.3 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

>   3328          struct sockaddr *sa = NULL;

>   3359              if (sa)
>   3360                free (sa);
>   3361              sa = xmalloc (addrlen);

> Also, line 3359-3361 above could be:
>       sa = xrealloc (addrlen);

Oops, I meant

      sa = xrealloc (sa, addrlen);

of course.

                                     YAMAMOTO Mitsuharu
                                address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]