light: fix string memleak

This commit is contained in:
Thomas Schoebel-Theuer 2014-02-20 17:50:59 +01:00 committed by Thomas Schoebel-Theuer
parent 3e9aae53c8
commit 012292677c
1 changed files with 1 additions and 0 deletions

View File

@ -892,6 +892,7 @@ int _update_version_link(struct mars_rotate *rot, struct trans_logger_info *inf)
brick_string_free(skip_path);
if (likely(skip_nr != inf->inf_sequence)) {
MARS_ERR_TO(rot->log_say, "SKIP in sequence numbers detected: %d != %d + 1\n", inf->inf_sequence, rot->inf_prev_sequence);
brick_string_free(skip_link);
goto out;
}
MARS_WRN_TO(rot->log_say,