diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index d6e24d6e9..4af12607f 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -2055,6 +2055,8 @@ sub writeout } } close($targ); + $dhcpconf=(); #dispose of the file contents in memory, no longer needed + $aixcfg=(); if (@dhcp6conf) { @@ -2071,6 +2073,7 @@ sub writeout print $targ $dhcp6conf[$idx]; } close($targ); + @dhcp6conf=(); } }