Skip to content
Snippets Groups Projects
Commit 5c5e91f1 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

xlog: fix a memory leak in xlog_write_meta()

Free the vclock_to_string() buffer in all cases.
parent 3955997e
No related branches found
No related tags found
No related merge requests found
......@@ -729,7 +729,7 @@ xlog_write_meta(struct xlog *l)
free(vstr);
return -1;
}
free(vstr);
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment