There are 2 ways you could do this:
- Skip the bootloader and run the ArduinoISP sketch on the Leonardo
- Use the Leonardo as an USB-to-serial interface and program the 328 via the bootloader as normal
The second option is probably easier, but entails writing a short sketch for the Leonardo to link Serial and Serial1.