Skip to content

Commit

Permalink
fixup leak memory (#1244)
Browse files Browse the repository at this point in the history
When I declared that the compilation mode was BUILD_TYPE=LSAN, there was a memory leak after running doris.

be.out:
Direct leak of 32816 byte(s) in 1 object(s) allocated from:
    #0 0x1089666 in __interceptor_malloc ../../../../libsanitizer/lsan/lsan_interceptors.cc:53
    #1 0x7ff459547280 in __alloc_dir (/lib64/libc.so.6+0xc0280)

SUMMARY: LeakSanitizer: 32816 byte(s) leaked in 1 allocation(s).
  • Loading branch information
worker24h authored and imay committed Jun 4, 2019
1 parent 6231fe0 commit ae75e44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions be/src/olap/store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ Status OlapStore::_check_path_exist() {
closedir(dirp);
return Status("readdir failed");
}
closedir(dirp);
return Status::OK;
}

Expand Down

0 comments on commit ae75e44

Please sign in to comment.