fix svace issue 67/78267/1
authorNAMJEONGYOON <just.nam@samsung.com>
Tue, 5 Jul 2016 03:26:08 +0000 (12:26 +0900)
committerNAMJEONGYOON <just.nam@samsung.com>
Tue, 5 Jul 2016 03:26:08 +0000 (12:26 +0900)
Change-Id: I4a528b5729e6f7ddeb053c69899303d595a50f13

src/player.c

index ad0646e..f1565c6 100644 (file)
@@ -1204,6 +1204,8 @@ static callback_cb_info_s *callback_new(gint sockfd)
        g_return_val_if_fail(sockfd > 0, NULL);
 
        cb_info = g_new(callback_cb_info_s, 1);
+       if (!cb_info)
+               return NULL;
        memset(cb_info, 0, sizeof(callback_cb_info_s));
 
        g_mutex_init(&cb_info->player_mutex);