Change the method for error return 53/139353/1
authorMyungki Lee <mk5004.lee@samsung.com>
Tue, 18 Jul 2017 11:48:57 +0000 (20:48 +0900)
committerMyungki Lee <mk5004.lee@samsung.com>
Tue, 18 Jul 2017 11:48:57 +0000 (20:48 +0900)
- notification_status_message_post
  need to free for some resource

Change-Id: I8341720484913909d6ef91c7cf11409b9483aceb
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
src/notification_status.c

index 00544c3..9d3cf3e 100755 (executable)
@@ -171,7 +171,7 @@ int notification_status_message_post(const char *message)
                /* LCOV_EXCL_START */
                NOTIFICATION_ERR("g_dbus_connection_emit_signal() failed: %s",
                                        err->message);
-               return NOTIFICATION_ERROR_FROM_DBUS;
+               ret = NOTIFICATION_ERROR_FROM_DBUS;
                goto end;
                /* LCOV_EXCL_STOP */
        }
@@ -180,7 +180,7 @@ int notification_status_message_post(const char *message)
                /* LCOV_EXCL_START */
                NOTIFICATION_ERR("g_dbus_connection_flush_sync() failed: %s",
                                        err->message);
-               return NOTIFICATION_ERROR_FROM_DBUS;
+               ret = NOTIFICATION_ERROR_FROM_DBUS;
                goto end;
                /* LCOV_EXCL_STOP */
        }