vtlcart: Free malloc() mem on tape unload

Signed-off-by: Mark Harvey <markh794@gmail.com>
vtltape: Remove unused 'ofp'

Found using valgrind..

Signed-off-by: Mark Harvey <markh794@gmail.com>
Cleanup 'fifo name handling'

As result of valgrind report.

==10252== syscall param unlink(pathname) points to unaddressable byte(s)
==10252==    at 0x398B0DC7D7: unlink (in /lib64/libc-2.12.so)
==10252==    by 0x40C92F: main (vtltape.c:3021)
==10252==  Address 0x0 is not stack'd, malloc'd or (recently) free'd

Signed-off-by: Mark Harvey <markh794@gmail.com>
TapeAlert helper function - set_TapeAlert()

update_TapeAlert() overwrote existing contents of TA data.

Re-worked so
- set_TapeAlert() sets the TA data with value passed.
- update_TapeAlert() updates the current value with value passed.

Signed-off-by: Mark Harvey <markh794@gmail.com>
Make sure TapeAlert is initialised to zero at startup time.

Signed-off-by: Mark Harvey <markh794@gmail.com>
vtltape: Cleanup vtltape malloc() mem on exit

Cleanup on exit for two reasons:
 - Just being nice..
 - Limit messages from valgrind

Signed-off-by: Mark Harvey <markh794@gmail.com>
vtllibrary: Cleanup vtllibrary malloc() mem on exit

Cleanup on exit for two reasons:
 - Just being nice..
 - Limit messages from valgrind on exit

Signed-off-by: Mark Harvey <markh794@gmail.com>