Explorar el Código

* Remove duplicate memory allocation. A very small memory leak.

Bryan Drewery hace 16 años
padre
commit
4bbe2398e6
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  1. 0 1
      src/chanprog.c

+ 0 - 1
src/chanprog.c

@@ -531,7 +531,6 @@ static struct userrec* add_bot_userlist(char* bot) {
     u = get_user_by_handle(userlist, bot);
 
     struct bot_addr *bi = (struct bot_addr *) my_calloc(1, sizeof(struct bot_addr));
-    bi = (struct bot_addr *) my_calloc(1, sizeof(struct bot_addr));
     bi->uplink = (char *) my_calloc(1, 1);
     bi->address = (char *) my_calloc(1, 1);
     bi->telnet_port = 3333;