sys-file-reader: Fix memory leak.
authorBen Pfaff <blp@cs.stanford.edu>
Mon, 20 Aug 2012 06:59:47 +0000 (23:59 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 20 Aug 2012 06:59:47 +0000 (23:59 -0700)
commit4d4d8b75297c30d7c95c2ab753f2c4493ae221ee
tree6638d6bd794a078e453aa1d2f077fa1b146748cb
parentace5fed0c507901119c906dc72f1c058bbb6f587
sys-file-reader: Fix memory leak.

The C standards say that the compiler is allowed to optimize away
changes to local variables within a function between a call to
setjmp() and a later call to longjmp(), unless the local variables
are volatile-qualified.

The 'dict' local variable in sfm_open_reader() fits this
description but wasn't volatile-qualified.  GCC in fact optimized
out the changes on my system, and this commit fixes that.
src/data/sys-file-reader.c