s3-spoolss: Free the info2 structure in _spoolss_GetPrinter.
[jlayton/samba.git] / source3 / rpc_server / spoolss / srv_spoolss_nt.c
index 9e241b576d2c864eec40861e495ea7bb870321ad..34ad67aaa6d5b5457dcb436950efc20e5e029d47 100644 (file)
@@ -4853,6 +4853,7 @@ WERROR _spoolss_GetPrinter(struct pipes_struct *p,
                result = WERR_UNKNOWN_LEVEL;
                break;
        }
+       TALLOC_FREE(info2);
 
  out:
        if (!W_ERROR_IS_OK(result)) {