New Ghostscript/GhostPDL compiler warnings - 2017-12-23-02:45:12 - 32cc4f267175dcc7a0dac0219e8e042ec9918cd9

[email protected] Sat, 23 Dec 2017 04:08:16 -0800 (PST)
Newsgroups gmane.comp.printing.ghostscript.regression
Message-ID <20171223120816.9671A2040401@i7>
Previous Revision: 3b24fd02b2bbeaef3d2e0374023fa330a9cddeac
 Current Revision: 32cc4f267175dcc7a0dac0219e8e042ec9918cd9

commit 32cc4f267175dcc7a0dac0219e8e042ec9918cd9
Author:     Shailesh Mistry <[email protected]>
AuthorDate: Thu Dec 21 19:41:20 2017 +0000
CommitDate: Sat Dec 23 10:30:41 2017 +0000

    Bug 697545 : Fix main instance memory leak.
    
    Fix memory leak for allocation event number 12.
    
    Error created using :-
    MEMENTO_FAILAT=13 ./membin/gpcl6 -sDEVICE=ppmraw -o /dev/null ./pcl/examples/owl.pcl

pcl/pl/plmain.c



GhostPCL:

new scan-build warnings:

./pcl/pl/plmain.c:437:5: warning: Access to field 'gs_lib_ctx' results in a dereference of a null pointer (loaded from variable 'mem')
    mem->gs_lib_ctx->top_of_system = NULL;
    ^~~~~~~~~~~~~~~


http://miles.ghostscript.com:8080/artifex/32cc4f267175dcc7a0dac0219e8e042ec9918cd9/pcl/index.html

http://miles.ghostscript.com:8080/artifex/32cc4f267175dcc7a0dac0219e8e042ec9918cd9/pcl-scan-build.txt