---
**[tickets:#3374] amf: coding issues identified by codechecker**
**Status:** assigned
**Milestone:** 5.25.04
**Created:** Thu May 22, 2025 09:50 AM UTC by Nguyen Huynh Tai
**Last Updated:** Thu May 22, 2025 09:50 AM UTC
**Owner:** Nguyen Huynh Tai
~~~
[HIGH] /home/ntai/working/opensaf-code/src/amf/amfnd/compdb.cc:1700:3: 1st
function call argument is an uninitialized value [core.CallAndMessage]
immutil_saImmOmFinalize(immOmHandle);
^
[HIGH] /home/ntai/working/opensaf-code/src/amf/amfnd/clc.cc:3290:21: Assigned
value is garbage or undefined [core.uninitialized.Assign]
cmd_info.i_script = argv[0];
^
[MEDIUM] /home/ntai/working/opensaf-code/src/amf/common/util.c:246:2: Potential
leak of memory pointed to by 'p' [unix.Malloc]
TRACE_LEAVE2("child_dn: %s parent_dn: %s",
^
[MEDIUM] /home/ntai/working/opensaf-code/src/amf/common/util.c:290:1: Potential
leak of memory pointed to by 'buf' [unix.Malloc]
}
^
[LOW] /home/ntai/working/opensaf-code/src/amf/amfd/csiattr.cc:594:9: Value
stored to 'i' is never read [deadcode.DeadStores]
i = 1;
^
~~~
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list._______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets