The customer would probably prefer that you released it - that would mean next time they need a change the previous is up streamed.
Note that the resulting patch is almost assuredly not public domain and you should never use that term.