Browse Source

Bug 619122 - fix coverify Defect Type: Resource leaks issues CID 11975 - 12053

https://bugzilla.redhat.com/show_bug.cgi?id=619122
Resolves: bug 619122
Bug description: fix coverify Defect Type: Resource leaks issues CID 12006.
description: The dna_parse_config_entry() has been modified to release value properly.
Endi S. Dewata 15 years ago
parent
commit
e49b10c286
1 changed files with 1 additions and 0 deletions
  1. 1 0
      ldap/servers/plugins/dna/dna.c

+ 1 - 0
ldap/servers/plugins/dna/dna.c

@@ -740,6 +740,7 @@ dna_parse_config_entry(Slapi_Entry * e, int apply)
          * attribute type.  We require this since we internally
          * perform a sorted range search on what we assume to
          * be an INTEGER syntax. */
+        slapi_ch_free_string(&value);
     }
 
     slapi_log_error(SLAPI_LOG_CONFIG, DNA_PLUGIN_SUBSYSTEM,