Переглянути джерело

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

Bryan Drewery 16 роки тому
батько
коміт
4bbe2398e6
1 змінених файлів з 0 додано та 1 видалено
  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;