Przeglądaj źródła

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 12 lat temu
rodzic
commit
39f5eda237
1 zmienionych plików z 3 dodań i 1 usunięć
  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);