? temp ? esip.c ? sipua.c ? esipin.c ? esiplib.h ? esipin.h ? esip.h ? esipresp.c ? mem ? list.c ? list.h ? dstring.c ? dstring.h ? IpConfig.IpSource ? IpConfig ? esip.c.save ? .pure ? esipin.c.save ? mrtos ? bakeoff.todo ? esip.c.sav ? bakeoff.txt ? esip.c.gau ? malloc_d.c ? a.out ? henningsmalloc.c ? string.c ? ipsend.c.save ? file2 ? string.h ? file3 ? malloc_d.h ? release Index: c =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/c,v retrieving revision 1.2 diff -r1.2 c 8,9c8,9 < # -I../src/libpcap-0.4 for < # -I../src/libpcap-0.4/bpf for with DLT_EN10MB, ... --- > # -I/home/gnair/src/libpcap-0.4 for > # -I/home/gnair/src/libpcap-0.4/bpf for with DLT_EN10MB, ... 11c11 < gcc -g -DSOLARIS -I../src/libpcap-0.4 -I../src/libpcap-0.4/bpf -c $* --- > gcc -g -DSOLARIS -I/proj/irt-gc1/libpcap-0.4 -I/proj/irt-gc1/libpcap-0.4/bpf -c $* Index: clock.c =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/clock.c,v retrieving revision 1.2 diff -r1.2 clock.c 67a68 > static int count = 0; 111c112,116 < printf("Time: %s, date: %s\n", timedisp, datedisp); --- > if (count == 10) { > count = 0; > printf("Time: %s, date: %s\n", timedisp, datedisp); > } > count ++; 113a119 > Index: creatuac.c =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/creatuac.c,v retrieving revision 1.6 diff -r1.6 creatuac.c 18a19 > #include "malloc_d.h" 51,52c52,53 < /* this pointer will be free in SIP.c */ < if((req=calloc(1000, sizeof(char)))==NULL) --- > /* this pointer will be Free in SIP.c */ > if((req=Calloc(1000, sizeof(char)))==NULL) 105c106 < if((udp=calloc(1, sizeof(char)))==NULL) --- > if((udp=Calloc(1, sizeof(char)))==NULL) 151c152 < ip=calloc(sizeof(char), 18); --- > ip=Calloc(sizeof(char), 18); 160c161 < free(ip); --- > Free(ip); Index: dhcp.c =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/dhcp.c,v retrieving revision 1.8 diff -r1.8 dhcp.c 59c59 < #include "memory.h" /* MallocCalls for debugging, TODO: delete */ --- > #include "malloc_d.h" /* MallocCalls for debugging, TODO: delete */ 94c94 < DhcpClientp=malloc(sizeof(DhcpClient_t)); --- > DhcpClientp=Malloc(sizeof(DhcpClient_t)); 108c108 < DhcpSendMessagep=malloc(sizeof(DhcpMessage_t)); --- > DhcpSendMessagep=Malloc(sizeof(DhcpMessage_t)); 141c141 < free(DhcpClientp); --- > Free(DhcpClientp); 143c143 < free(DhcpSendMessagep); --- > Free(DhcpSendMessagep); 167,168c167,168 < free((DhcpClientp->SipServers[i])->Hostname); < free(DhcpClientp->SipServers[i]); --- > Free((DhcpClientp->SipServers[i])->Hostname); > Free(DhcpClientp->SipServers[i]); 172c172 < free(DhcpClientp->sname); --- > Free(DhcpClientp->sname); 174c174 < free(DhcpClientp->file); --- > Free(DhcpClientp->file); 176c176 < free(DhcpClientp->HostName); --- > Free(DhcpClientp->HostName); 178c178 < free(DhcpClientp->DomainName); --- > Free(DhcpClientp->DomainName); 180c180 < free(DhcpClientp->TftpServerName); --- > Free(DhcpClientp->TftpServerName); 182c182 < free(DhcpClientp->BootfileName); --- > Free(DhcpClientp->BootfileName); 184c184 < free(DhcpClientp->MessageOption); --- > Free(DhcpClientp->MessageOption); 186c186 < free(DhcpClientp); --- > Free(DhcpClientp); 191c191 < free(DhcpSendMessagep); --- > Free(DhcpSendMessagep); 468c468 < TftpReceiveBuffer=malloc(2048); --- > TftpReceiveBuffer=Malloc(2048); 494c494 < free(ptr); --- > Free(ptr); 500c500 < free(ptr); --- > Free(ptr); 508c508 < free(ptr); --- > Free(ptr); 538c538 < free(ptr); --- > Free(ptr); 1053c1053 < free(DhcpClientp->sname); --- > Free(DhcpClientp->sname); 1056c1056 < DhcpClientp->sname=malloc(TftpServerLength+1); --- > DhcpClientp->sname=Malloc(TftpServerLength+1); 1058c1058 < Syslog(LOG_ERR, "%s: malloc() failed", fname); --- > Syslog(LOG_ERR, "%s: Malloc() failed", fname); 1065c1065 < free(DhcpClientp->sname); --- > Free(DhcpClientp->sname); 1077c1077 < free(DhcpClientp->file); --- > Free(DhcpClientp->file); 1080c1080 < DhcpClientp->file=malloc(BootfileLength+1); --- > DhcpClientp->file=Malloc(BootfileLength+1); 1082c1082 < Syslog(LOG_ERR, "%s: malloc() failed", fname); --- > Syslog(LOG_ERR, "%s: Malloc() failed", fname); 1090c1090 < free(DhcpClientp->file); --- > Free(DhcpClientp->file); 1096,1097c1096,1097 < /* if ((ops=malloc(sizeof(PresentedOptions_t)))==NULL) { < Syslog(LOG_ERR, "%s: malloc() failed", fname); --- > /* if ((ops=Malloc(sizeof(PresentedOptions_t)))==NULL) { > Syslog(LOG_ERR, "%s: Malloc() failed", fname); 1188,1190c1188,1190 < free(DhcpClientp->HostName); < if ((DhcpClientp->HostName=malloc(OptionLength+1))==NULL) { < Syslog(LOG_ERR, "%s: malloc() failed", fname); --- > Free(DhcpClientp->HostName); > if ((DhcpClientp->HostName=Malloc(OptionLength+1))==NULL) { > Syslog(LOG_ERR, "%s: Malloc() failed", fname); 1207,1209c1207,1209 < free(DhcpClientp->DomainName); < if ((DhcpClientp->DomainName=malloc(OptionLength+1))==NULL) { < Syslog(LOG_ERR, "%s: malloc() failed", fname); --- > Free(DhcpClientp->DomainName); > if ((DhcpClientp->DomainName=Malloc(OptionLength+1))==NULL) { > Syslog(LOG_ERR, "%s: Malloc() failed", fname); 1235,1237c1235,1237 < free(DhcpClientp->TftpServerName); < if ((DhcpClientp->TftpServerName=malloc(OptionLength+1))==NULL) { < Syslog(LOG_ERR, "%s: malloc() failed", fname); --- > Free(DhcpClientp->TftpServerName); > if ((DhcpClientp->TftpServerName=Malloc(OptionLength+1))==NULL) { > Syslog(LOG_ERR, "%s: Malloc() failed", fname); 1251,1253c1251,1253 < free(DhcpClientp->BootfileName); < if ((DhcpClientp->BootfileName=malloc(OptionLength+1))==NULL) { < Syslog(LOG_ERR, "%s: malloc() failed", fname); --- > Free(DhcpClientp->BootfileName); > if ((DhcpClientp->BootfileName=Malloc(OptionLength+1))==NULL) { > Syslog(LOG_ERR, "%s: Malloc() failed", fname); 1272,1274c1272,1274 < free(DhcpClientp->MessageOption); < if ((DhcpClientp->MessageOption=malloc(OptionLength+1))==NULL) { < Syslog(LOG_ERR, "%s: malloc() failed", fname); --- > Free(DhcpClientp->MessageOption); > if ((DhcpClientp->MessageOption=Malloc(OptionLength+1))==NULL) { > Syslog(LOG_ERR, "%s: Malloc() failed", fname); 1294,1295c1294,1295 < if ((SipServerp=malloc(sizeof(SipServer_t)))==NULL) { < Syslog(LOG_ERR, "%s: malloc() failed", fname); --- > if ((SipServerp=Malloc(sizeof(SipServer_t)))==NULL) { > Syslog(LOG_ERR, "%s: Malloc() failed", fname); 1309,1310c1309,1310 < if ((SipServerp->Hostname=malloc(OptionLength-(q-p)+1))==NULL) { < Syslog(LOG_ERR, "%s: malloc() failed", fname); --- > if ((SipServerp->Hostname=Malloc(OptionLength-(q-p)+1))==NULL) { > Syslog(LOG_ERR, "%s: Malloc() failed", fname); 1482,1483c1482,1483 < free((DhcpClientp->SipServers[i])->Hostname); < free(DhcpClientp->SipServers[i]); --- > Free((DhcpClientp->SipServers[i])->Hostname); > Free(DhcpClientp->SipServers[i]); 1531c1531 < free(RoutingTable[i]); --- > Free(RoutingTable[i]); 1537c1537 < /* RoutingTable[i]=malloc(sizeof(RoutingEntry_t)); --- > /* RoutingTable[i]=Malloc(sizeof(RoutingEntry_t)); 1605a1606,1607 > /* run the flag task IpSetupDoneTask */ > set_flag(3); 1718c1720 < DnsQueryp=malloc(sizeof(DnsQuery_t)); --- > DnsQueryp=Malloc(sizeof(DnsQuery_t)); 1720c1722 < Syslog(LOG_ERR, "%s: malloc failed()", fname); --- > Syslog(LOG_ERR, "%s: Malloc failed()", fname); 1732,1733c1734,1735 < free(SipServerp->Hostname); < free(SipServerp); --- > Free(SipServerp->Hostname); > Free(SipServerp); 1742,1743c1744,1745 < free(SipServerp->Hostname); < free(SipServerp); --- > Free(SipServerp->Hostname); > Free(SipServerp); 1762c1764 < free(DnsQueryp); --- > Free(DnsQueryp); 1796c1798 < DnsQueryp=malloc(sizeof(DnsQuery_t)); --- > DnsQueryp=Malloc(sizeof(DnsQuery_t)); 1798c1800 < Syslog(LOG_ERR, "%s: malloc failed()", fname); --- > Syslog(LOG_ERR, "%s: Malloc failed()", fname); 1813c1815 < free(DnsQueryp); --- > Free(DnsQueryp); 1822c1824 < free(DnsQueryp); --- > Free(DnsQueryp); Index: dns.c =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/dns.c,v retrieving revision 1.13 diff -r1.13 dns.c 35a36 > #include "malloc_d.h" 115c116 < free(DnsCache[i].fqdn); --- > Free(DnsCache[i].fqdn); 117c118 < free(DnsCache[i].cname); --- > Free(DnsCache[i].cname); 349c350 < Syslog(LOG_DEBUG, "%s: searching DNS cache for %s", fname, name); --- > // Syslog(LOG_DEBUG, "%s: searching DNS cache for %s", fname, name); 354c355 < free(DnsCache[i].fqdn); --- > Free(DnsCache[i].fqdn); 358c359 < free(DnsCache[i].cname); --- > Free(DnsCache[i].cname); 581c582,583 < query->Handle=ScheduleTask(DELAYED_TASK, (void *)DnsTask, 300, 0, --- > /* Gautam: Changed timeout from 300 to 1000 */ > query->Handle=ScheduleTask(DELAYED_TASK, (void *)DnsTask, 1000, 0, 711c713 < will prepend "_sip_udp." which contains dot. */ --- > will prepend "_sip._udp." which contains dot. */ 949c951 < free(ptr); --- > Free(ptr); 956c958 < free(ptr); --- > Free(ptr); 1044c1046,1047 < query->Handle=ScheduleTask(DELAYED_TASK, (void *)DnsTask, 300, 0, --- > /* Gautam: Changed timeout from 300 to 1000 */ > query->Handle=ScheduleTask(DELAYED_TASK, (void *)DnsTask, 1000, 0, 1588c1591 < free(DnsCache[i].fqdn); --- > Free(DnsCache[i].fqdn); 1592c1595 < free(DnsCache[i].cname); --- > Free(DnsCache[i].cname); 1606c1609 < free(DnsCache[LowestTtlIndex].fqdn); --- > Free(DnsCache[LowestTtlIndex].fqdn); 1610c1613 < free(DnsCache[LowestTtlIndex].cname); --- > Free(DnsCache[LowestTtlIndex].cname); 1639c1642 < p=calloc(strlen(ahostname)+1, sizeof(char)); --- > p=Calloc(strlen(ahostname)+1, sizeof(char)); 1672c1675 < free(DnsCache[i].cname); --- > Free(DnsCache[i].cname); 1676c1679 < p=calloc(strlen(cname)+1, sizeof(char)); --- > p=Calloc(strlen(cname)+1, sizeof(char)); 1678c1681 < free(DnsCache[i].fqdn); --- > Free(DnsCache[i].fqdn); Index: dns.h =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/dns.h,v retrieving revision 1.13 diff -r1.13 dns.h 26c26 < #define DNS_SERVER_PORT 1053 --- > #define DNS_SERVER_PORT 53 74,75c74,75 < #define SIP_UDP_SERVICE "_sip_udp." < #define SIP_TCP_SERVICE "_sip_tcp." --- > #define SIP_UDP_SERVICE "_sip._udp." > #define SIP_TCP_SERVICE "_sip._tcp." Index: encode.c =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/encode.c,v retrieving revision 1.5 diff -r1.5 encode.c 21a22 > #include "malloc_d.h" 41c42 < if((up=malloc(sizeof(udppk)))==NULL) --- > if((up=Malloc(sizeof(udppk)))==NULL) Index: icmp.c =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/icmp.c,v retrieving revision 1.6 diff -r1.6 icmp.c 26a27 > #include "malloc_d.h" 53c54 < IcmpEchoStatep=malloc(sizeof(IcmpEchoState_t)); --- > IcmpEchoStatep=Malloc(sizeof(IcmpEchoState_t)); 81c82 < free(IcmpEchoStatep); --- > Free(IcmpEchoStatep); 98c99 < free(IcmpEchoStatep); --- > Free(IcmpEchoStatep); 163c164 < free(ptr); --- > Free(ptr); 239c240 < free(ptr); --- > Free(ptr); 348c349 < IcmpSendMessagep=malloc(8+cnt); --- > IcmpSendMessagep=Malloc(8+cnt); 350c351 < Syslog(LOG_ERR, "%s: malloc() failed, cannot send reply", fname); --- > Syslog(LOG_ERR, "%s: Malloc() failed, cannot send reply", fname); 412c413 < IcmpSendMessagep=malloc(8+cnt); --- > IcmpSendMessagep=Malloc(8+cnt); 414c415 < Syslog(LOG_ERR, "%s: malloc() failed, cannot send request", fname); --- > Syslog(LOG_ERR, "%s: Malloc() failed, cannot send request", fname); 488c489 < IcmpSendMessagep=malloc(8+cnt); --- > IcmpSendMessagep=Malloc(8+cnt); 490c491 < Syslog(LOG_ERR, "%s: malloc() failed, cannot send request", fname); --- > Syslog(LOG_ERR, "%s: Malloc() failed, cannot send request", fname); Index: igmp.c =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/igmp.c,v retrieving revision 1.5 diff -r1.5 igmp.c 20a21 > #include "malloc_d.h" 114c115 < free(IgmpGroups[i]); --- > Free(IgmpGroups[i]); 194c195 < free(ptr); --- > Free(ptr); 214c215 < free(ptr); --- > Free(ptr); 259c260,268 < IgmpGroups[GroupId]->Timer=seconds + random()%(MaxRespTime/10); --- > if ( MaxRespTime/10 > 0 ) { > IgmpGroups[GroupId]->Timer=seconds + > random()%(MaxRespTime/10); > } > else { > IgmpGroups[GroupId]->Timer=seconds; /* KNS10 --- gnair > should look > into this */ > } 264c273,281 < IgmpGroups[GroupId]->Timer=seconds + random()%(MaxRespTime/10); --- > if ( MaxRespTime/10 > 0 ) { > IgmpGroups[GroupId]->Timer=seconds + > random()%(MaxRespTime/10); > } > else { > IgmpGroups[GroupId]->Timer=seconds; /* KNS10 --- gnair > should look > into this */ > } 294c311 < free(ptr); --- > Free(ptr); 400c417 < IgmpGroups[empty]=malloc(sizeof(IgmpGroup_t)); --- > IgmpGroups[empty]=Malloc(sizeof(IgmpGroup_t)); 402c419 < Syslog(LOG_ERR, "%s: malloc() failed", fname); --- > Syslog(LOG_ERR, "%s: Malloc() failed", fname); 424c441 < free(IgmpGroups[empty]); --- > Free(IgmpGroups[empty]); 478c495 < free(IgmpGroups[i]); --- > Free(IgmpGroups[i]); 548c565 < IgmpSendMessagep=malloc(8); --- > IgmpSendMessagep=Malloc(8); 550c567 < Syslog(LOG_ERR, "%s: malloc() failed", fname); --- > Syslog(LOG_ERR, "%s: Malloc() failed", fname); Index: ipinit.c =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/ipinit.c,v retrieving revision 1.11 diff -r1.11 ipinit.c 147c147 < free(RoutingTable[i]); --- > Free(RoutingTable[i]); 279,295c279,295 < < if (*IpString=='[') < IpString++; < for (i=24; i>=0; i-=8) { < cur=atoi(IpString); < if (cur<0 || cur>255) < return 0; < Ip32 |= (u_int32)(cur & 0xFF) << i; < if (!i) < break; < < if ((IpString=strchr(IpString, '.'))==NULL) < return 0; < IpString++; < } < return Ip32; < } /* IpStringTo32() */ --- > > if (*IpString=='[') > IpString++; > for (i=24; i>=0; i-=8) { > cur=atoi(IpString); > if (cur<0 || cur>255) > return 0; > Ip32 |= (u_int32)(cur & 0xFF) << i; > if (!i) > break; > > if ((IpString=strchr(IpString, '.'))==NULL) > return 0; > IpString++; > } > return Ip32; > } /* IpStringTo32() */ Index: ipinit.h =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/ipinit.h,v retrieving revision 1.12 diff -r1.12 ipinit.h 11c11 < #include "sdp.h" --- > //#include "sdp.h" Index: iprcv.c =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/iprcv.c,v retrieving revision 1.15 diff -r1.15 iprcv.c 38a39 > #include "malloc_d.h" 80a82 > 94c96 < free(Options); --- > Free(Options); 97c99 < Syslog(LOG_DEBUG, "%s: PacketCheck() returned: %d", fname, ret); --- > Syslog(LOG_ERR, "%s: PacketCheck() returned: %d", fname, ret); 233a236 > 282c285 < free(IpHeader64Bits); --- > Free(IpHeader64Bits); 342c345 < free(*Options); --- > Free(*Options); 352c355 < free(IpPayload); --- > Free(IpPayload); 380a384,389 > /* printing packet received info */ > /* > printf ("%s: Received IP packet from %s for port %d\n", > fname, Ip32ToString(LocalIp), RemotePort); > */ > 414c423 < *Payload=malloc(UdpLength-8); --- > *Payload=Malloc(UdpLength-8); 418c427,428 < free(IpPayload); --- > if(IpPayload!=NULL) > Free(IpPayload); 452c462,466 < --- > if (RemotePort == 5060) { > printf ("%s: SIP packet from %s arrived", > fname, Ip32ToString(LocalIp)); > } > 491a506 > //printf ("no registered callbacks found \n"); 578c593 < free(*Payload); --- > Free(*Payload); 583c598 < free(*Options); --- > Free(*Options); 588c603 < free(IpPayload); --- > Free(IpPayload); 620,621c635,636 < if ((PayloadDst=calloc(PayloadLengthBytes, sizeof(char)))==NULL) { < Syslog(LOG_ERR, "%s: calloc() failed", fname); --- > if ((PayloadDst=Calloc(PayloadLengthBytes, sizeof(char)))==NULL) { > Syslog(LOG_ERR, "%s: Calloc() failed", fname); 775c790 < IpReassemblyBuffers[i]=malloc(sizeof(IpReassemblyBuffer_t)); --- > IpReassemblyBuffers[i]=Malloc(sizeof(IpReassemblyBuffer_t)); 797,798c812,813 < free(Fragment->data); < free(Fragment); --- > Free(Fragment->data); > Free(Fragment); 801c816 < free(IpReassemblyBuffers[i]); --- > Free(IpReassemblyBuffers[i]); 820c835 < FragmentNew=malloc(sizeof(IpFragment_t)); --- > FragmentNew=Malloc(sizeof(IpFragment_t)); 823c838 < FragmentNew->data=malloc(length); --- > FragmentNew->data=Malloc(length); 825c840 < free(FragmentNew); --- > Free(FragmentNew); 856c871 < IpPayload=malloc(Length); --- > IpPayload=Malloc(Length); 887c902 < free(IpPayload); --- > Free(IpPayload); Index: ipsend.c =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/ipsend.c,v retrieving revision 1.16 diff -r1.16 ipsend.c 41c41 < #include "memory.h" /* MemoryScan() */ --- > #include "malloc_d.h" /* MemoryScan() */ 394,395c394,395 < free(IpSendDatap->data); < free(IpSendDatap); --- > Free(IpSendDatap->data); > Free(IpSendDatap); 767c767 < RoutingTable[EmptySlot]=malloc(sizeof(RoutingEntry_t)); --- > RoutingTable[EmptySlot]=Malloc(sizeof(RoutingEntry_t)); 769c769 < Syslog(LOG_ERR, "%s: malloc() failed", fname); --- > Syslog(LOG_ERR, "%s: Malloc() failed", fname); 916c916 < free(RoutingTable[i]); --- > Free(RoutingTable[i]); Index: l-solaris =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/l-solaris,v retrieving revision 1.9 diff -r1.9 l-solaris 7c7 < gcc -o mrtos -L../src/libpcap-0.4 \ --- > gcc -o mrtos -L/proj/irt-gc1/libpcap-0.4 \ 38a39,46 > esip.o \ > esipin.o \ > dstring.o \ > list.o \ > sipua.o \ > esipresp.o \ > malloc_d.o \ > string.o \ 39a48,54 > > > > > > > Index: lp-solaris =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/lp-solaris,v retrieving revision 1.2 diff -r1.2 lp-solaris 7,8c7,8 < #../src/purify-4.5.1-solaris2/purify -best-effort -cache-dir=/home/ubik/pcache gcc -o mrtos -L../src/libpcap-0.4 \ < purify -best-effort -cache-dir=/home/ubik/pcache gcc -o mrtos -L../src/libpcap-0.4 \ --- > #../src/purify-4.5.1-solaris2/purify -best-effort -cache-dir=/home/ubik/pcache gcc -o mrtos -L/proj/irt-gc1/libpcap-0.4 \ > purify -best-effort -cache-dir=/home/ubik/pcache gcc -o mrtos -L/proj/irt-gc1/libpcap-0.4 \ 27d26 < udpin.o \ 38a38,45 > esip.o \ > esipin.o \ > esipresp.o \ > memory.o \ > sipua.o \ > dstring.o \ > list.o \ > stat.o \ Index: main.c =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/main.c,v retrieving revision 1.10 diff -r1.10 main.c 47c47 < --- > setbuf (stdout, NULL); 81c81,82 < SipInit(); --- > /* SipInit(); */ > SIPInit(); 86a88,90 > > /* Initialise the SIP UA */ > SipUaInit(); Index: request.c =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/request.c,v retrieving revision 1.3 diff -r1.3 request.c 15a16 > #include "malloc_d.h" 40c41 < if((up=calloc(1,sizeof(udppk)))==NULL) --- > if((up=Calloc(1,sizeof(udppk)))==NULL) 43c44 < if((sipp=calloc(MESSAGESIZE, sizeof(char)))==NULL) --- > if((sipp=Calloc(MESSAGESIZE, sizeof(char)))==NULL) 45c46 < free(up); --- > Free(up); 132c133 < /*free(up);*/ --- > /*Free(up);*/ Index: response.c =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/response.c,v retrieving revision 1.4 diff -r1.4 response.c 15a16,17 > #include "malloc_d.h" > 56c58 < if((up=calloc(1,sizeof(udppk)))==NULL) --- > if((up=Calloc(1,sizeof(udppk)))==NULL) 59c61 < if((sipp=calloc(MESSAGESIZE, sizeof(char)))==NULL) --- > if((sipp=Calloc(MESSAGESIZE, sizeof(char)))==NULL) 61c63 < free(up); --- > Free(up); 152c154 < /*free (up); */ --- > /*Free (up); */ Index: rtp.c =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/rtp.c,v retrieving revision 1.4 diff -r1.4 rtp.c 83c83 < /* free(ptr);*/ --- > /* Free(ptr);*/ Index: sendto.c =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/sendto.c,v retrieving revision 1.16 diff -r1.16 sendto.c 160c160 < free(up); --- > Free(up); 198,199c198,199 < free(up->data); < free(up); --- > Free(up->data); > Free(up); 206c206 < free(up); --- > Free(up); 360,361c360,361 < free(up->data); < free(up); --- > Free(up->data); > Free(up); Index: sip.c =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/sip.c,v retrieving revision 1.5 diff -r1.5 sip.c 18a19 > #include "malloc_d.h" 239c240 < free(msg[i].udp); --- > Free(msg[i].udp); 241c242 < free(msg[i].local); --- > Free(msg[i].local); 248c249 < if((tmp=calloc(50, sizeof(char)))==NULL) --- > if((tmp=Calloc(50, sizeof(char)))==NULL) 250c251 < if((buf=calloc(50, sizeof(char)))==NULL) --- > if((buf=Calloc(50, sizeof(char)))==NULL) 252c253 < free(tmp); --- > Free(tmp); 264,265c265,266 < free(tmp); < free(buf); --- > Free(tmp); > Free(buf); Index: sip.h =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/sip.h,v retrieving revision 1.7 diff -r1.7 sip.h 41,45d40 < typedef struct { < char *s; /* start of string */ < short len; /* length of string */ < } string; < 57a53,57 > > typedef struct { > char *s; /* start of string */ > short len; /* length of string */ > } string; Index: sipparse.c =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/sipparse.c,v retrieving revision 1.2 diff -r1.2 sipparse.c 14a15,16 > #include "malloc_d.h" > 434c436 < if((S1=calloc(maxlen, sizeof(char)))==NULL) --- > if((S1=Calloc(maxlen, sizeof(char)))==NULL) 436c438 < if((S2=calloc(maxlen, sizeof(char)))==NULL) --- > if((S2=Calloc(maxlen, sizeof(char)))==NULL) 438c440 < free(S1); --- > Free(S1); 451,452c453,454 < free(S2); < free(S1); --- > Free(S2); > Free(S1); Index: socket.c =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/socket.c,v retrieving revision 1.6 diff -r1.6 socket.c 45a46 > #include "malloc_d.h" 92c93 < Sockets[i]=malloc(sizeof(Socket_t)); --- > Sockets[i]=Calloc(1, sizeof(Socket_t)); 105c106 < free(Sockets[i]); --- > Free(Sockets[i]); 344,345c345,346 < free(Sockets[sockfd]->name); < free(Sockets[sockfd]); --- > Free(Sockets[sockfd]->name); > Free(Sockets[sockfd]); 393,394c394,395 < free(Sockets[sockfd]->name); < Sockets[sockfd]->name=malloc(strlen(name)+1); --- > Free(Sockets[sockfd]->name); > Sockets[sockfd]->name=Malloc(strlen(name)+1); 480c481 < * release - if non-zero, free(ptr) will be called to release dynamic --- > * release - if non-zero, Free(ptr) will be called to release dynamic 517c518 < free(ptr); --- > Free(ptr); 527c528 < free(ptr); --- > Free(ptr); 542c543 < free(ptr); --- > Free(ptr); 625c626 < free(ptr); --- > Free(ptr); 647c648 < free(ptr); --- > Free(ptr); 675c676 < free(ptr); --- > Free(ptr); 684c685 < free(ptr); --- > Free(ptr); 720c721 < free(ptr); --- > Free(ptr); 727c728 < if ((IpSendDatap=calloc(1, sizeof(IpSendData_t)))==NULL) { --- > if ((IpSendDatap=Calloc(1, sizeof(IpSendData_t)))==NULL) { 729c730 < free(ptr); --- > Free(ptr); 780c781 < free(data); --- > Free(data); 785c786 < RetransmitItemp=malloc(sizeof(RetransmitItem_t)); --- > RetransmitItemp=Malloc(sizeof(RetransmitItem_t)); 788c789 < free(data); --- > Free(data); 799c800 < p=malloc(cnt); --- > p=Malloc(cnt); 801c802 < free(RetransmitItemp); --- > Free(RetransmitItemp); 846,847c847,848 < free(RetransmitItemp->data); < free(RetransmitItemp); --- > Free(RetransmitItemp->data); > Free(RetransmitItemp); 940c941 < free(Sockets[sockfd]->IpHeaderOptions); --- > Free(Sockets[sockfd]->IpHeaderOptions); 954c955 < p=malloc(AllignedLength); --- > p=Malloc(AllignedLength); 957c958 < Syslog(LOG_ERR, "%s: malloc() failed for socket %d (%s)", --- > Syslog(LOG_ERR, "%s: Malloc() failed for socket %d (%s)", Index: stat.c =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/stat.c,v retrieving revision 1.2 diff -r1.2 stat.c 15a16 > #include "malloc_d.h" 30c31 < free(EphoneStatp); --- > Free(EphoneStatp); 33c34 < EphoneStatp=malloc(sizeof(EphoneStat_t)); --- > EphoneStatp=Malloc(sizeof(EphoneStat_t)); 35c36 < Syslog(LOG_CRIT, "%s: malloc() failed", fname); --- > Syslog(LOG_CRIT, "%s: Malloc() failed", fname); Index: stat.h =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/stat.h,v retrieving revision 1.2 diff -r1.2 stat.h 70a71,72 > > Index: sysinit.c =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/sysinit.c,v retrieving revision 1.11 diff -r1.11 sysinit.c 23a24 > #include "malloc_d.h" 43c44 < free(EphoneConfigp); --- > Free(EphoneConfigp); 46c47 < EphoneConfigp=malloc(sizeof(EphoneConfig_t)); --- > EphoneConfigp=Malloc(sizeof(EphoneConfig_t)); 48c49 < Syslog(LOG_CRIT, "%s: malloc() failed", fname); --- > Syslog(LOG_CRIT, "%s: Malloc() failed", fname); Index: syslog.c =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/syslog.c,v retrieving revision 1.2 diff -r1.2 syslog.c 27a28 > #include "malloc_d.h" 126,127c127,128 < free(SyslogIdent); < SyslogIdent=malloc(strlen(ident)+1); --- > Free(SyslogIdent); > SyslogIdent=Malloc(strlen(ident)+1); 187c188 < FormatBuffer=malloc(FormatLength+1); --- > FormatBuffer=Malloc(FormatLength+1); 247c248 < SyslogBuffer=malloc(IdentLength+strlen(MessageBuffer)+30+20); --- > SyslogBuffer=Malloc(IdentLength+strlen(MessageBuffer)+30+20); 285c286 < free(FormatBuffer); --- > Free(FormatBuffer); 305c306 < free(SyslogIdent); --- > Free(SyslogIdent); Index: tftp.c =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/tftp.c,v retrieving revision 1.2 diff -r1.2 tftp.c 24a25 > #include "malloc_d.h" 157c158 < free(TftpSendMessagep); --- > Free(TftpSendMessagep); 221c222 < free(ptr); --- > Free(ptr); 335c336 < TftpSendMessagep=malloc(strlen(TftpFilename)+40); --- > TftpSendMessagep=Malloc(strlen(TftpFilename)+40); 337c338 < Syslog(LOG_ERR, "malloc() failed"); --- > Syslog(LOG_ERR, "Malloc() failed"); 392c393 < free(ptr); --- > Free(ptr); 400c401 < free(ptr); --- > Free(ptr); 404c405 < free(TftpSendMessagep); --- > Free(TftpSendMessagep); 433c434 < TftpSendMessagep=malloc(4); --- > TftpSendMessagep=Malloc(4); 435c436 < Syslog(LOG_ERR, "%s: malloc() failed, transfer terminated", fname); --- > Syslog(LOG_ERR, "%s: Malloc() failed, transfer terminated", fname); 476c477 < name=malloc(strlen(extensions)+1); --- > name=Malloc(strlen(extensions)+1); 486c487 < value=malloc(strlen(extensions)+1); --- > value=Malloc(strlen(extensions)+1); 488c489 < free(name); --- > Free(name); 523,524c524,525 < free(name); < free(value); --- > Free(name); > Free(value); Index: timeclnt.c =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/timeclnt.c,v retrieving revision 1.6 diff -r1.6 timeclnt.c 138c138 < free(ptr); --- > Free(ptr); 165c165 < free(ptr); --- > Free(ptr); Index: usertask.c =================================================================== RCS file: /u/kon/hgs/src/cvsroot/ephone/usertask.c,v retrieving revision 1.13 diff -r1.13 usertask.c 35c35 < --- > extern void IpSetupDoneTask(void); 59a60,62 > > /* Setup the IpSetupDoneTask as a flag task */ > ScheduleTask(FLAG_TASK, (void *)IpSetupDoneTask, 0, 0, NULL, 0, 3, 0); 65c68 < ScheduleTask(DELAYED_TASK, (void *)StatPrint, 500, 500, NULL, 0, 0, 0); --- > // ScheduleTask(DELAYED_TASK, (void *)StatPrint, 500, 500, NULL, 0, 0, 0);