]> git.ozlabs.org Git - yaboot.git/blobdiff - second/yaboot.c
Commit yaboot 1.3.5-pre3
[yaboot.git] / second / yaboot.c
index b52b927b262fc35900d63b490af6e431bfd16975..6eabb427dc20863f73b0d1bfa1d38d9eba89a070 100644 (file)
@@ -297,7 +297,7 @@ void print_message_file(char *filename)
      if (!msg)
          goto done;
      else
-         memset(msg, 0, sizeof(*msg));
+         memset(msg, 0, 2001);
 
      if (file.fs->read(&file, 2000, msg) <= 0)
          goto done;
@@ -309,10 +309,6 @@ done:
          file.fs->close(&file);
      if (msg)
          free(msg);
-     if (p)
-         free(p);
-     if (endp)
-         free(endp);
 }
 
 /* Currently, the config file must be at the root of the filesystem.