Use MyFreePool in line_edit().
authorChristian Groessler <chris@groessler.org>
Mon, 24 Oct 2016 11:34:36 +0000 (13:34 +0200)
committerChristian Groessler <chris@groessler.org>
Mon, 24 Oct 2016 11:34:36 +0000 (13:34 +0200)
refind/line_edit.c

index 8bb9fb4..fa4987b 100644 (file)
@@ -211,7 +211,7 @@ BOOLEAN line_edit(CHAR16 *line_in, CHAR16 **line_out, UINTN x_max) {
    }
 
    refit_call2_wrapper(ST->ConOut->EnableCursor, ST->ConOut, FALSE);
-   FreePool(print);
-   FreePool(line);
+   MyFreePool(print);
+   MyFreePool(line);
    return enter;
 } /* BOOLEAN line_edit() */