Skip to content

Commit eee9c4c

Browse files
committed
Fix two direct memory leaks of CU-UP tester
Direct leak of 100 byte(s) in 1 object(s) allocated from: #0 0x7f6585ee6f2b in malloc (/lib64/libasan.so.8+0xe6f2b) (BuildId: 10b8ccd49f75c21babf1d7abe51bb63589d8471f) OPENAIRINTERFACE#1 0x000000414a0d in malloc_or_fail /home/richie/oai/common/utils/utils.h:86 OPENAIRINTERFACE#2 0x0000004061c9 in main /home/richie/oai/tests/nr-cuup/nr-cuup-load-test.c:544 OPENAIRINTERFACE#3 0x7f6585211574 in __libc_start_call_main (/lib64/libc.so.6+0x3574) (BuildId: 48c4b9b1efb1df15da8e787f489128bf31893317) OPENAIRINTERFACE#4 0x7f6585211627 in __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x3627) (BuildId: 48c4b9b1efb1df15da8e787f489128bf31893317) #5 0x000000413034 in _start (/home/richie/oai/build/tests/nr-cuup/nr-cuup-load-test+0x413034) (BuildId: 8af0132792b03fa12ba95b5623865c9a8a5625a3) Direct leak of 100 byte(s) in 1 object(s) allocated from: #0 0x7f6585ee6f2b in malloc (/lib64/libasan.so.8+0xe6f2b) (BuildId: 10b8ccd49f75c21babf1d7abe51bb63589d8471f) OPENAIRINTERFACE#1 0x000000414a0d in malloc_or_fail /home/richie/oai/common/utils/utils.h:86 OPENAIRINTERFACE#2 0x0000004061ff in main /home/richie/oai/tests/nr-cuup/nr-cuup-load-test.c:546 OPENAIRINTERFACE#3 0x7f6585211574 in __libc_start_call_main (/lib64/libc.so.6+0x3574) (BuildId: 48c4b9b1efb1df15da8e787f489128bf31893317) OPENAIRINTERFACE#4 0x7f6585211627 in __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x3627) (BuildId: 48c4b9b1efb1df15da8e787f489128bf31893317) #5 0x000000413034 in _start (/home/richie/oai/build/tests/nr-cuup/nr-cuup-load-test+0x413034) (BuildId: 8af0132792b03fa12ba95b5623865c9a8a5625a3)
1 parent 459e20f commit eee9c4c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/nr-cuup/nr-cuup-load-test.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,9 @@ int main(int argc, char *argv[])
664664
success = false;
665665
}
666666

667+
free(ng_ip);
668+
free(f1_ip);
669+
667670
if (success)
668671
LOG_A(GNB_APP, "test succeeded\n");
669672
else

0 commit comments

Comments
 (0)