spoolss: clear FormInfo on GetForm error
[obnox/samba/samba-obnox.git] / source3 / rpc_server / spoolss / srv_spoolss_nt.c
index 9023ab672ff2ad8d3505705e49ac29b60adf34ff..9b898d0ab539a3aafe0481b91e7756c9bd25e3be 100644 (file)
@@ -7853,6 +7853,7 @@ WERROR _spoolss_GetForm(struct pipes_struct *p,
        /* that's an [in out] buffer */
 
        if (!r->in.buffer && (r->in.offered != 0)) {
+               TALLOC_FREE(r->out.info);
                return WERR_INVALID_PARAM;
        }