Change 5592

tony_smith (Tony Smith)
Tony Smith committed this change into //guest/tony_smith/perforce/API/Perl
Request Review
Download .zip
Bug fix: We were erroneously making a Perl scalar mortal (which causes
its reference count to be decremented when it goes out of scope) when
receiving binary data from the server. Decrementing the reference count
to early meant the scalar was being cleaned up when it was in fact
still in use.

This change simply removes the sv_2mortal() call.

Thanks to Mike Hall at National Instruments for finding this one.
  • Files 5
  • Comments 0
5 edited 0 added 0 deleted
P4/Changes#30
Loading...
P4/META.yml#24
Loading...
P4/P4.pm#31
Loading...
P4/lib/perlclientuser.cc#11
Loading...
current/P4.tar.gz#30
Loading...
Tip: Use n and p to cycle through the changes.