Check memory allocation in ISoundTriggerHwService

Add memory allocation check in ISoundTriggerHwService::listModules().

Bug: 19385640.
Change-Id: Iaf74b6f154c3437e1bfc9da78b773d64b16a7604

 virtual status_t setCaptureState(bool active)
 {
 Parcel data, reply;
        data.writeInterfaceToken(ISoundTriggerHwService::getInterfaceDescriptor());
        data.writeInt32(active);
 status_t status = remote()->transact(SET_CAPTURE_STATE, data, &reply);
 if (status == NO_ERROR) {
            status = reply.readInt32();
 }
 return status;
 }

 virtual status_t setCaptureState(bool active)
 {
 Parcel data, reply;
        data.writeInterfaceToken(ISoundTriggerHwService::getInterfaceDescriptor());
        data.writeInt32(active);
 status_t status = remote()->transact(SET_CAPTURE_STATE, data, &reply);
 if (status == NO_ERROR) {
            status = reply.readInt32();
 }
 return status;
 }
