]> git.tuebingen.mpg.de Git - paraslash.git/commit
mysql selector: Fix a memory leak in get_query()
authorAndre <maan@p133.(none)>
Sat, 25 Mar 2006 20:15:46 +0000 (21:15 +0100)
committerAndre <maan@p133.(none)>
Sat, 25 Mar 2006 20:15:46 +0000 (21:15 +0100)
commit9f07bfb31ea556c41b45cdc3f37b6ccccbc8dca0
tree209e4830129f9dc03380a0012ec68a2fc69ff2b4
parentd4fd7f0255b3fc8c9405dba3b4f5618384c6024b
mysql selector: Fix a memory leak in get_query()

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