Explorar el Código

Ticket #47455 - valgrind - value mem leaks, uninit mem usage

https://fedorahosted.org/389/ticket/47455
Reviewed by: lkrispenz, nhosoi (Thanks!)
Branch: master
Fix Description: Can only free import job if it is not a task.  If it is
a task, the job will be freed by the task destructor.
Platforms tested: RHEL6 x86_64
Flag Day: no
Doc impact: no
Rich Megginson hace 12 años
padre
commit
39f5eda237
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      ldap/servers/slapd/back-ldbm/import.c

+ 3 - 1
ldap/servers/slapd/back-ldbm/import.c

@@ -1558,7 +1558,9 @@ error:
     instance_set_not_busy(job->inst);
     
     import_free_job(job);
-    FREE(job);
+    if (!job->task) {
+	FREE(job);
+    }
     if (producer)
         FREE(producer);