sysdb: Fixed a memory leak in an error condition.

Thanks to clang-analyze for identifying this!