diff options
author | Seppia <seppia@seppio.fish> | 2018-07-05 14:37:58 +0200 |
---|---|---|
committer | Seppia <seppia@seppio.fish> | 2018-07-05 14:37:58 +0200 |
commit | 6662ba7c4bf910fde1bb49d0a63a0c9265ff5c3a (patch) | |
tree | 8b3dd1c71ec8099bcb152098f1b6a5a9d848bf9f | |
parent | 55c1f44657cc9be36b6e83a48b62d76706252d8e (diff) | |
download | onetimebluh-6662ba7c4bf910fde1bb49d0a63a0c9265ff5c3a.tar.gz onetimebluh-6662ba7c4bf910fde1bb49d0a63a0c9265ff5c3a.tar.bz2 onetimebluh-6662ba7c4bf910fde1bb49d0a63a0c9265ff5c3a.zip |
Missing memory deallocationv0.2.1
input string was not properly deallocated if previously reallocated.
-rw-r--r-- | src/onetimebluh.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/onetimebluh.c b/src/onetimebluh.c index 5754fdf..08f147d 100644 --- a/src/onetimebluh.c +++ b/src/onetimebluh.c @@ -283,6 +283,8 @@ void xor (Opts* opzioni) { if (opzioni->input) { fclose (mex); + } else if (!opzioni->input) { + free (input); } if (opzioni->output) { @@ -480,6 +482,8 @@ void bluh (Opts* opzioni) { if (opzioni->input) { fclose (mex); + } else if (!opzioni->input) { + free (input); } if (opzioni->output) { |