[sr-dev] git:master:3fad937b: lib/ims: proper check of the pointer returned by pkg_malloc; indentation fixes