cvs: /php3/functions hg_comm.c

From: Date: Thu, 26 Aug 1999 10:36:06 +0000
Subject: cvs: /php3/functions hg_comm.c
Groups: php.dev 
Request: Send a blank email to php-dev+get-10217@lists.php.net to get a copy of this message
steinm Thu Aug 26 06:36:06 1999 EDT Modified files: /php3/functions hg_comm.c Log: fixed memory leak in hw_insdoc and hw_inscoll Index: php3/functions/hg_comm.c diff -u php3/functions/hg_comm.c:1.29 php3/functions/hg_comm.c:1.30 --- php3/functions/hg_comm.c:1.29 Fri Aug 20 08:13:26 1999 +++ php3/functions/hg_comm.c Thu Aug 26 06:36:05 1999 @@ -23,7 +23,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: hg_comm.c,v 1.29 1999/08/20 12:13:26 steinm Exp $ */ +/* $Id: hg_comm.c,v 1.30 1999/08/26 10:36:05 steinm Exp $ */ /* #define HW_DEBUG */ @@ -962,7 +962,7 @@ setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &option, sizeof(option)); #endif /* SUN */ - if (connect(sockfd, (struct sockaddr *) &server_addr, sizeof(server_addr)) != 0) { + if (connect(sockfd, (struct sockaddr *) &server_addr, sizeof(server_addr)) < 0) { HWSOCK_FCLOSE(sockfd); return(-3); } @@ -1732,6 +1732,8 @@ ptr++; *new_objectID = *ptr; + efree(retmsg->buf); + efree(retmsg); return 0; } @@ -1781,6 +1783,8 @@ ptr++; *new_objectID = *ptr; + efree(retmsg->buf); + efree(retmsg); return 0; }

« previous php.dev (#10217) next »