Преглед изворни кода

Fixed a possible memory leak

svn: 134
Bryan Drewery пре 23 година
родитељ
комит
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