git » libjio » commit 21e7328

libjio: Remove bogus free()

author Alberto Bertogli
2009-07-03 07:44:06 UTC
committer Alberto Bertogli
2009-07-03 07:44:06 UTC
parent 1b41c374d4f1aea92983f2e3ba160fed0987f66e

libjio: Remove bogus free()

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

libjio/journal.c +1 -3

diff --git a/libjio/journal.c b/libjio/journal.c
index b059eee..cc61976 100644
--- a/libjio/journal.c
+++ b/libjio/journal.c
@@ -179,10 +179,8 @@ struct journal_op *journal_new(struct jtrans *ts)
 	bufp += 4;
 
 	rv = spwrite(fd, buf_init, J_DISKHEADSIZE, 0);
-	if (rv != J_DISKHEADSIZE) {
-		free(buf_init);
+	if (rv != J_DISKHEADSIZE)
 		goto unlink_error;
-	}
 
 	jop->curpos = J_DISKHEADSIZE;