You've had a lot of good replies already. But, I've a few further
suggestions. First, to address the concerns that you mentioned:
plagiarism for commercial gain
The GPL is, as others have noted, a copyright licence, and thus
provides the same level of legal protection against use of the code not
authorized by the license as do proprietary licences and the strategy
of not letting the code out of the lab under any license. In practice,
the level of protection is greater than at least the "don't let it out"
strategy. Under the later, most likely only the University's lawyers
will care to pursue plagiaristic use. Under the GPL, the University's
lawyers will be joined by an army of geeks, some with law degrees and a
professional interest in defending the terms of the GPL.
A few of your respondents suggest a more permissive licence would help.
I'd suggest that if your Prof's concern is with others taking the code
in question and making profit on it, the GPL with its "viral" terms is a
better bet. The GPL certainly allows others to redistribute code for
profit so long as they respect the terms of the GPL. But, since those
terms require that they make the code available under the same terms as
which they obtained it, the economic forces tend to drive the price for
the code to 0.
Releasing code under the GPL leaves only the same opportunities for
(legal) commercial gain as does publishing a journal article describing
some method or process that can be exploited commercially.
involvement with legal issues
Again, the GPL is a copyright licence and so provides the same level of
legal protection as does any other licence or the strategy of not
distributing at all. Again, use of the GPL provides, in practice, a
larger pool of resources upon which to draw than do proprietary licences
or not distributing at all.
issues of ownership
Again, the GPL is a copyright licence and has no effect on the ownership
of the code. It remains owned by the holder of the copyright.
Some other points:
BusyBox and Westinghouse
You might cite the recent (2010-08-03) decision against Westinghouse for their
violation of the terms of the GPL with regards to BusyBox to show that
the GPL has teeth and addresses the point of "plagiarism for commercial
gain." Westinghouse was ordered to pay triple damages, legal costs, and
to surrender all remaining televisions that used BusyBox in violation of
the GPL. It seems to me that this case ought to go a long way to address
the concerns, especially if you are located in the US.
Peer Review
Releasing the code that goes into the production of research results
seem essential if academia is to continue to have meaningful peer
review. With the code available, others can inspect the entire process
that leads to the results. Without the code, part of the research method
is inside a black box. (Some sort of "clear source" licence would
achieve this end, too, but don't mention that ;-))
Standing on the shoulders of giants
Academic research is a cumulative affair, where researches extend each
others results for the common good. To keep code secret is to cause
other researchers to reduplicate work pointlessly and to needlessly slow
down the communal advancement of knowledge.