Author: imp
Date: Tue Dec 12 19:26:10 2017
New Revision: 326801
URL: https://svnweb.freebsd.org/changeset/base/326801

Log:
  Don't leak new_data.
  
  CID: 1383605
  Sponsored by: Netflix

Modified:
  head/usr.sbin/efibootmgr/efibootmgr.c

Modified: head/usr.sbin/efibootmgr/efibootmgr.c
==============================================================================
--- head/usr.sbin/efibootmgr/efibootmgr.c       Tue Dec 12 19:25:54 2017        
(r326800)
+++ head/usr.sbin/efibootmgr/efibootmgr.c       Tue Dec 12 19:26:10 2017        
(r326801)
@@ -361,6 +361,7 @@ set_boot_order(char *order)
        free(cp);
        if (set_bootvar("BootOrder", (uint8_t*)new_data, size) < 0)
                err(1, "Unabke to set BootOrder to %s", order);
+       free(new_data);
 }
 
 static void
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to