summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungbae Shin <seungbae.shin@samsung.com>2020-01-13 19:21:58 +0900
committerSeungbae Shin <seungbae.shin@samsung.com>2020-01-15 06:05:34 +0000
commit55734a4f03fae9b614ee6213d4bcfa74af6dddd5 (patch)
tree2863e746de52e2f1548b2dadacd85d9286d0c1f0
parentcafeacec8b217e8cfbf722c61b444cd5636b561f (diff)
downloadlibmm-sound-submit/tizen/20200130.111236.tar.gz
libmm-sound-submit/tizen/20200130.111236.tar.bz2
libmm-sound-submit/tizen/20200130.111236.zip
Change-Id: Ic82ab59660ba7976789b06bc8da6c61ba5317d21 (cherry picked from commit 7852719f0a4cae043f7a6c13787d0aa0310c1721)
-rwxr-xr-xtestsuite/mm_sound_testsuite_simple.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/mm_sound_testsuite_simple.c b/testsuite/mm_sound_testsuite_simple.c
index 4bfc7fb..f72e2fd 100755
--- a/testsuite/mm_sound_testsuite_simple.c
+++ b/testsuite/mm_sound_testsuite_simple.c
@@ -803,6 +803,11 @@ static void interpret(char *cmd)
if (basedir != NULL) {
entry_len = offsetof(struct dirent, d_name) + fpathconf(dirfd(basedir), MAX_STRING_LEN) + 1;
prev_entry = malloc(entry_len);
+ if (prev_entry == NULL) {
+ debug_error("malloc error");
+ closedir(basedir);
+ break;
+ }
while (1) {
int playfail = 0;