projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9ec0d46
)
fixed several memory leaks caused by missing table_free calls
author
pk910
<philipp@zoelle1.de>
Thu, 2 Feb 2012 19:25:34 +0000
(20:25 +0100)
committer
pk910
<philipp@zoelle1.de>
Thu, 2 Feb 2012 19:25:34 +0000
(20:25 +0100)
src/cmd_global_bots.c
patch
|
blob
|
history
src/cmd_global_commands.c
patch
|
blob
|
history
src/cmd_neonhelp_requests.c
patch
|
blob
|
history
src/cmd_neonhelp_stats.c
patch
|
blob
|
history
src/cmd_neonserv_myaccess.c
patch
|
blob
|
history
diff --git
a/src/cmd_global_bots.c
b/src/cmd_global_bots.c
index 491babeebd13a19697fcd85d57cc92df989cb4ae..57ab15384ac2dacdcaabc7b4742e1898139a6ae4 100644
(file)
--- a/
src/cmd_global_bots.c
+++ b/
src/cmd_global_bots.c
@@
-69,4
+69,5
@@
CMD_BIND(global_cmd_bots) {
for(i = 0; i < table->entrys; i++) {
reply(getTextBot(), user, table_lines[i]);
}
for(i = 0; i < table->entrys; i++) {
reply(getTextBot(), user, table_lines[i]);
}
+ table_free(table);
}
\ No newline at end of file
}
\ No newline at end of file
diff --git
a/src/cmd_global_commands.c
b/src/cmd_global_commands.c
index b6cb01eb8fb74d5543c28d1327559eb84aaf1a24..caeac9781c642982e1caaf09103d2d32093f583f 100644
(file)
--- a/
src/cmd_global_commands.c
+++ b/
src/cmd_global_commands.c
@@
-78,7
+78,7
@@
CMD_BIND(global_cmd_commands) {
for(i = 0; i < table->entrys; i++) {
reply(getTextBot(), user, table_lines[i]);
}
for(i = 0; i < table->entrys; i++) {
reply(getTextBot(), user, table_lines[i]);
}
-
+ table_free(table);
}
static int global_cmd_commands_sort(const void *a, const void *b) {
}
static int global_cmd_commands_sort(const void *a, const void *b) {
diff --git
a/src/cmd_neonhelp_requests.c
b/src/cmd_neonhelp_requests.c
index 89d83ac9f4a111fb81d6cf9cc455bd0d3cca8c71..b95a4b441a6b3a79043c9dedd65aa69d04b3d27b 100644
(file)
--- a/
src/cmd_neonhelp_requests.c
+++ b/
src/cmd_neonhelp_requests.c
@@
-104,4
+104,5
@@
CMD_BIND(neonhelp_cmd_requests) {
}
if(table->entrys == 1)
reply(getTextBot(), user, "NS_TABLE_NONE");
}
if(table->entrys == 1)
reply(getTextBot(), user, "NS_TABLE_NONE");
+ table_free(table);
}
}
diff --git
a/src/cmd_neonhelp_stats.c
b/src/cmd_neonhelp_stats.c
index 967e05e6576f07e62f9cbc4c228d260dd24718b5..0d1d9a4f2db3e71fb021b947ac0d7fc056c45b85 100644
(file)
--- a/
src/cmd_neonhelp_stats.c
+++ b/
src/cmd_neonhelp_stats.c
@@
-83,5
+83,6
@@
CMD_BIND(neonhelp_cmd_stats) {
}
if(table->entrys == 1)
reply(getTextBot(), user, "NS_TABLE_NONE");
}
if(table->entrys == 1)
reply(getTextBot(), user, "NS_TABLE_NONE");
+ table_free(table);
}
}
}
}
diff --git
a/src/cmd_neonserv_myaccess.c
b/src/cmd_neonserv_myaccess.c
index 03ea9421f62684fe4a1b9236b872ee32a914f3e8..b9f65811f197282e5a07f855a98ae057972f39fe 100644
(file)
--- a/
src/cmd_neonserv_myaccess.c
+++ b/
src/cmd_neonserv_myaccess.c
@@
-186,4
+186,5
@@
static void neonserv_cmd_myaccess_async1(struct ClientSocket *client, struct Cli
} else {
reply(textclient, user, "NS_MYACCESS_COUNT", auth, total_count, owner_count);
}
} else {
reply(textclient, user, "NS_MYACCESS_COUNT", auth, total_count, owner_count);
}
+ table_free(table);
}
}