[IBAL] deref the ci_ca->obj in case that update fail.
[mirror/winof/.git] / core / al / user / ual_mgr.c
index 2abf6a2..c1ebe82 100644 (file)
@@ -1010,6 +1010,9 @@ __process_misc_cb(
                        if( status != IB_SUCCESS) {\r
                                AL_PRINT(TRACE_LEVEL_ERROR ,AL_DBG_ERROR ,\r
                                        ("update CA attributes returned %#x.\n", status) );\r
+       \r
+                               /* Dereference the CA now. */\r
+                               deref_al_obj( &p_ci_ca->obj );\r
                                break;\r
                        }\r
                        if ( p_old_ca_attr )\r