Browse Source

Possible bug fix (memory freeing).

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@1727 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Dave Parker 16 years ago
parent
commit
16ae4e3d40
  1. 2
      prism/src/sparse/PS_ExportMDP.cc

2
prism/src/sparse/PS_ExportMDP.cc

@ -153,7 +153,7 @@ jstring fn // filename
// close file, etc. // close file, etc.
if (export_file) fclose(export_file); if (export_file) fclose(export_file);
env->ReleaseStringUTFChars(na, export_name);
if (na) env->ReleaseStringUTFChars(na, export_name);
// catch exceptions: return (undocumented) error code for memout // catch exceptions: return (undocumented) error code for memout
} catch (std::bad_alloc e) { } catch (std::bad_alloc e) {

Loading…
Cancel
Save