mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
rename memory functions in pluginlink
This commit is contained in:
1 parent
e7e7d2fddf
commit
22cf9254c5
9 files changed
+82
-82
No files matched your search
@@ -74,7 +74,7 @@ static void killtrafcorrect() {
|
||||
while (p) {
|
||||
d = p;
|
||||
p = p->next;
|
||||
pl->free(d);
|
||||
free(d);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ int h_trafcorrect(int argc, unsigned char ** argv) {
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
newitem = (struct trafcorrect *)pl->malloc(sizeof(struct trafcorrect));
|
||||
newitem = (struct trafcorrect *)malloc(sizeof(struct trafcorrect));
|
||||
newitem->next = NULL;
|
||||
newitem->type = MULTIPLAY;
|
||||
|
||||
@@ -112,7 +112,7 @@ int h_trafcorrect(int argc, unsigned char ** argv) {
|
||||
newitem->coeff = atof((char *)argv[4]);
|
||||
/* ďđîâĺđęŕ íŕ ęîđđĺęňíîńňü ââîäŕ */
|
||||
if ((newitem->port>65535) | (newitem->coeff<=0) | (newitem->coeff>100)) {
|
||||
pl->free(newitem);
|
||||
free(newitem);
|
||||
if(DBGLEVEL == 1)fprintf(stdout, "Port must be 0<p<65535 and coefficient must be 0<c<100.\n");
|
||||
return 2;
|
||||
}
|
||||
@@ -130,7 +130,7 @@ int h_trafcorrect(int argc, unsigned char ** argv) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
newitem = (struct trafcorrect *)pl->malloc(sizeof(struct trafcorrect));
|
||||
newitem = (struct trafcorrect *)malloc(sizeof(struct trafcorrect));
|
||||
newitem->next = NULL;
|
||||
newitem->type = IPCORRECT;
|
||||
|
||||
@@ -158,7 +158,7 @@ int h_trafcorrect(int argc, unsigned char ** argv) {
|
||||
}
|
||||
|
||||
if ((newitem->port>65535) | (newitem->psize<=0)) {
|
||||
pl->free(newitem);
|
||||
free(newitem);
|
||||
if(DBGLEVEL == 1)fprintf(stdout, "Port must be 0<p<65535.\n");
|
||||
return 2;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user