Просмотр исходного кода

Fixed a possible memory leak

svn: 134
Bryan Drewery 23 лет назад
Родитель
Сommit
1f37fa4e69
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      src/net.c

+ 2 - 3
src/net.c

@@ -1403,10 +1403,9 @@ void tputs(register int z, char *s, unsigned int len)
 
     inhere = 0;
   }
-/* I dont think this is needed.. -bryan 
-  if (socklist[i].encstatus)
+
+  if (socklist[i].encstatus > 0)
     nfree(s);
-*/
 }
 
 /* tputs might queue data for sockets, let's dump as much of it as