Browse Source

Bug 630092 - Coverity #15487: Resource leaks issues

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

Description:

The index_set_entry_to_fifo() has been modified to release ep when
the job is aborted.
Endi Sukma Dewata 15 years ago
parent
commit
1aab7c095a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      ldap/servers/slapd/back-ldbm/import-threads.c

+ 2 - 0
ldap/servers/slapd/back-ldbm/import-threads.c

@@ -805,6 +805,7 @@ index_set_entry_to_fifo(ImportWorkerInfo *info, Slapi_Entry *e,
     }
 
     if (job->flags & FLAG_ABORT) {
+        backentry_free(&ep);
         goto bail;
     }
 
@@ -831,6 +832,7 @@ index_set_entry_to_fifo(ImportWorkerInfo *info, Slapi_Entry *e,
             DS_Sleep(sleeptime);
         }
         if (job->flags & FLAG_ABORT) {
+            backentry_free(&ep);
             goto bail;
         }