diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-12-14 12:03:05 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-12-14 12:03:05 +0000 |
commit | 00fdcc21c095cd54297f58885e5460be9ca6db70 (patch) | |
tree | 7baebdbb00bab976499a5456fb26773dd2aabc8e /dev-cpp/libmcpp/0001-Fix-memory-leaks.patch | |
parent | mysql-8.0.21-icu-68.1.patch (diff) | |
download | patches-00fdcc21c095cd54297f58885e5460be9ca6db70.tar.bz2 patches-00fdcc21c095cd54297f58885e5460be9ca6db70.tar.xz patches-00fdcc21c095cd54297f58885e5460be9ca6db70.zip |
Add patches fixing memory leaks in Slice parser and underlying libmcpp
Diffstat (limited to 'dev-cpp/libmcpp/0001-Fix-memory-leaks.patch')
-rw-r--r-- | dev-cpp/libmcpp/0001-Fix-memory-leaks.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-cpp/libmcpp/0001-Fix-memory-leaks.patch b/dev-cpp/libmcpp/0001-Fix-memory-leaks.patch new file mode 100644 index 0000000..bb1be6b --- /dev/null +++ b/dev-cpp/libmcpp/0001-Fix-memory-leaks.patch @@ -0,0 +1,28 @@ +From dffd7e8425064b22e6679070d216c108aef88304 Mon Sep 17 00:00:00 2001 +From: Dan Goodliffe <dan@randomdan.homeip.net> +Date: Mon, 14 Dec 2020 11:26:14 +0000 +Subject: [PATCH 1/2] Fix memory leaks + +--- + src/main.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/main.c b/src/main.c +index f9ede32..279cbbe 100644 +--- a/src/main.c ++++ b/src/main.c +@@ -428,8 +428,11 @@ int main + + fatal_error_exit: + #if MCPP_LIB ++ if (in_file != stdin_name) ++ free( in_file); + clear_filelist(); + clear_symtable(); ++ init_system(); + #endif + + if (fp_in && fp_in != stdin) +-- +2.29.2 + |