schema.c: Fixed array resize typo bug (replace - with +)

This bug caused schema table corruption.

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>
ca-shell: Patched up two memory leaks

The temporary buffers for prompt and history path were not being freed in all
cases.

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>