sys-file-reader: Fix double-free on read of partial record.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 30 Jan 2011 23:33:30 +0000 (15:33 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 31 Jan 2011 04:34:34 +0000 (20:34 -0800)
commitf994fab43f6aeb00cfb40d24c4c4c6ed518a05b9
treeac723c3d2546249cd634abac02aae5864fc28e73
parent871dc2a4ffe7bd1c1b0a7c5a451ce9e23d4b7969
sys-file-reader: Fix double-free on read of partial record.

partial_record() does a longjmp() to code near the top of
sys_file_casereader_read() that unrefs the case, but this code at the
end of sys_file_casereader_read() would have already unref'ed it once in
that case, resulting in a double-free.
src/data/sys-file-reader.c