After upgrade to Z/OS 2.5 some of the COBOL application programs abended with:
DC016005 V57 T17 ACCEAE3A TASK:nnnnnnn PROG:nnnnnnn STORAGE-ID *0000* OF STORAGE TO BE FREED IS UNKNOWN
DC027007 V57 T17 TASK:nnnnnnn PROG:nnnnnnn ABENDED WITH CODE D002
The program is doing a:
FREE STORAGE STGID field_name
Release : 19.0
The DC016005 message is issued because the address of the STGID field is x'00000000'.
The field_name in the STGID parameter must point to a field that contains the 4 character storage id.
In this case there is a programming error in the program, the field_name is pointing to a LINKAGE SECTION field which was not initialized yet.
The problem occurs in z/OS 2.5 because the new version of z/OS Language Environment in z/OS 2.5 is making COBOL work differently.
See documentation section FREE STORAGE (COBOL)