projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drop mem_alloc and mem_free, use my own hand crafted optmized macros that
[apps/madmutt.git]
/
mutt_socket.c
diff --git
a/mutt_socket.c
b/mutt_socket.c
index
9029b3e
..
90a8dde
100644
(file)
--- a/
mutt_socket.c
+++ b/
mutt_socket.c
@@
-13,6
+13,8
@@
# include "config.h"
#endif
# include "config.h"
#endif
+#include <lib-lib/mem.h>
+
#include "mutt.h"
#include "globals.h"
#include "mutt_socket.h"
#include "mutt.h"
#include "globals.h"
#include "mutt_socket.h"
@@
-189,7
+191,7
@@
void mutt_socket_free (CONNECTION * conn)
/* head is special case, doesn't need prev updated */
if (iter == conn) {
Connections = iter->next;
/* head is special case, doesn't need prev updated */
if (iter == conn) {
Connections = iter->next;
-
mem_free
(&iter);
+
p_delete
(&iter);
return;
}
return;
}
@@
-197,7
+199,7
@@
void mutt_socket_free (CONNECTION * conn)
if (iter->next == conn) {
tmp = iter->next;
iter->next = tmp->next;
if (iter->next == conn) {
tmp = iter->next;
iter->next = tmp->next;
-
mem_free
(&tmp);
+
p_delete
(&tmp);
return;
}
iter = iter->next;
return;
}
iter = iter->next;
@@
-404,7
+406,7
@@
int raw_socket_open (CONNECTION * conn)
rc = getaddrinfo (host_idna, port, &hints, &res);
# ifdef HAVE_LIBIDN
rc = getaddrinfo (host_idna, port, &hints, &res);
# ifdef HAVE_LIBIDN
-
mem_free
(&host_idna);
+
p_delete
(&host_idna);
# endif
if (rc) {
# endif
if (rc) {
@@
-455,7
+457,7
@@
int raw_socket_open (CONNECTION * conn)
if ((he = gethostbyname (host_idna)) == NULL) {
# ifdef HAVE_LIBIDN
if ((he = gethostbyname (host_idna)) == NULL) {
# ifdef HAVE_LIBIDN
-
mem_free
(&host_idna);
+
p_delete
(&host_idna);
# endif
mutt_error (_("Could not find the host \"%s\""), conn->account.host);
# endif
mutt_error (_("Could not find the host \"%s\""), conn->account.host);
@@
-463,7
+465,7
@@
int raw_socket_open (CONNECTION * conn)
}
# ifdef HAVE_LIBIDN
}
# ifdef HAVE_LIBIDN
-
mem_free
(&host_idna);
+
p_delete
(&host_idna);
# endif
mutt_message (_("Connecting to %s..."), conn->account.host);
# endif
mutt_message (_("Connecting to %s..."), conn->account.host);