]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - mysql_selector.c
mysql selector: Fix a memory leak in get_query()
[paraslash.git] / mysql_selector.c
index b51f4f079c82cf12994e9f91f0fb553769983932..c5f71cddab03614e699e02ad2c21d941196745c2 100644 (file)
@@ -1187,7 +1187,7 @@ static char *get_query(char *streamname, char *filename, int with_path)
                        free(tmp2);
                        continue;
                }
-               if (!strcmp(command, "score:"))
+               if (!score && !strcmp(command, "score:"))
                        score = s_a_r_list(macro_list, arg);
        }
        if (!score) {