Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

swscanf memory leak on C compiler 5.5

807575Dec 24 2003 — edited Feb 4 2004
Has anyone came across memory leak in swscanf function?
For each call of this function dbx RTC memory check reports one byte leak.

I get report like below.



Total Num of Leaked Allocation call stack
Size Blocks Block
Address
====== ====== ========== =======================================
1 1 0x20fe8 wdungetwc < __wdoscan_u < swscanf < xample < main


Actual leaks report (actual leaks: 2 total size: 2 bytes)

Total Num of Leaked Allocation call stack
Size Blocks Block
Address
====== ====== ========== =======================================
2 2 - wdungetwc < __wdoscan_u



Even on Sun workshop C version 5.3 same leak is shown.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 3 2004
Added on Dec 24 2003
2 comments
152 views