mirror of
https://github.com/sheumann/hush.git
synced 2024-09-12 00:55:11 +00:00
tr: free allocated memory in tr if CLEANUP enabled
Signed-off-by: Alexey Soloviev <EXT-Alexey.Soloviev@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
4a2a86d5e7
commit
41478ade4f
@ -324,5 +324,11 @@ int tr_main(int argc UNUSED_PARAM, char **argv)
|
||||
str2[out_index++] = last = coded;
|
||||
}
|
||||
|
||||
if (ENABLE_FEATURE_CLEAN_UP) {
|
||||
free(vector);
|
||||
free(str2);
|
||||
free(str1);
|
||||
}
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user