projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d4fd7f0
)
mysql selector: Fix a memory leak in get_query()
author
Andre
<maan@p133.(none)>
Sat, 25 Mar 2006 20:15:46 +0000
(21:15 +0100)
committer
Andre
<maan@p133.(none)>
Sat, 25 Mar 2006 20:15:46 +0000
(21:15 +0100)
If the stream definition contained N > 1 "score:" lines (an invalid
configuration anyway, there should be at most one), we leaked the first
N - 1 score lines. The fix is to take into account the first one only.
mysql_selector.c
patch
|
blob
|
history
diff --git
a/mysql_selector.c
b/mysql_selector.c
index b51f4f079c82cf12994e9f91f0fb553769983932..c5f71cddab03614e699e02ad2c21d941196745c2 100644
(file)
--- a/
mysql_selector.c
+++ b/
mysql_selector.c
@@
-1187,7
+1187,7
@@
static char *get_query(char *streamname, char *filename, int with_path)
free(tmp2);
continue;
}
- if (!strcmp(command, "score:"))
+ if (!s
core && !s
trcmp(command, "score:"))
score = s_a_r_list(macro_list, arg);
}
if (!score) {