Explorar o código

Bug 630092 - Coverity #11985: Resource leaks issues

https://bugzilla.redhat.com/show_bug.cgi?id=630092

Description:

The str2simple() has been modified to release unqstr when
an error occurs.
Endi Sukma Dewata %!s(int64=15) %!d(string=hai) anos
pai
achega
e84ef2ecea
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      ldap/servers/slapd/str2filter.c

+ 1 - 0
ldap/servers/slapd/str2filter.c

@@ -320,6 +320,7 @@ str2simple( char *str , int unescape_filter)
 		value[len] = savechar;
 		if (!r) {
 		    slapi_filter_free(f, 1);
+		    slapi_ch_free((void**)&unqstr);
 		    return NULL;
 		}
 		f->f_avvalue.bv_val = unqstr;