Patch from Scott Mckellar to plug a few leaks
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 31 Jan 2008 18:56:38 +0000 (18:56 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 31 Jan 2008 18:56:38 +0000 (18:56 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@8549 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/c-apps/oils_idl-core.c

index 5994e13..8b8184d 100644 (file)
@@ -87,6 +87,7 @@ osrfHash* oilsIDLInit( const char* idl_filename ) {
                                                osrfStringArrayAdd(controller, strdup(_controller_class));
                                        }
                                }
+                               free(controller_list);
                        }
                        osrfHashSet( usrData, controller, "controller");
 
@@ -245,6 +246,7 @@ osrfHash* oilsIDLInit( const char* idl_filename ) {
                                                                        osrfStringArrayAdd(map, strdup(_map_class));
                                                                }
                                                        }
+                                                       free(map_list);
                                                }
                                                osrfHashSet( _tmp, map, "map");
 
@@ -283,11 +285,11 @@ osrfHash* oilsIDLInit( const char* idl_filename ) {
                                }
 
                                _cur = _cur->next;
-                       }
+                       } // end while
                }
 
                kid = kid->next;
-       }
+       } // end while
 
        osrfLogInfo(OSRF_LOG_MARK, "...IDL XML parsed");