lib: Fix memory leak when debugging enabled (found by valgrind).
[libguestfs.git] / regressions / rhbz503169c13.sh
index 7bace82..f1cfa5e 100755 (executable)
@@ -14,7 +14,7 @@
 #
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 # Regression test for:
 # https://bugzilla.redhat.com/show_bug.cgi?id=503169#c13
 set -e
 
 rm -f test1.img
-dd if=/dev/zero of=test1.img bs=1024k count=10
 
-../fish/guestfish -a test1.img <<EOF
-run
-sfdisk /dev/sda 0 0 0 ,
-mkfs ext2 /dev/sda1
-mount /dev/sda1 /
+../fish/guestfish -N fs -m /dev/sda1 <<EOF
 mkdir /dev
 -command /ignore-this-error
 unmount-all