diff options
Diffstat (limited to 'src/io/ftos.cpp')
| -rw-r--r-- | src/io/ftos.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/io/ftos.cpp b/src/io/ftos.cpp index 47f0dc232..b8d161ca4 100644 --- a/src/io/ftos.cpp +++ b/src/io/ftos.cpp @@ -320,6 +320,7 @@ string ftos(double val, char mode, int sigfig, int precision, int options) break; default: + g_free(p); return "**bad mode**"; } @@ -413,6 +414,7 @@ string ftos(double val, char mode, int sigfig, int precision, int options) fprintf(stderr, "*** End of ftos with ascii = ", ascii.c_str()); #endif /* finally, we can return */ + g_free(p); return ascii; } |
