There are severe security implications in doing this.
Since the product is free, someone can enter a huge quantity (there's no money barrier) and make your product go out of stock, take away all the tickets/codes, generate a download link with high expiration limits (as expiration limit for a download gets multiplied by quantity
purchased).
Not all of that might apply to your particular product, but I guess you get the idea.