diff --git a/res/res_hep.c b/res/res_hep.c
index da23d2257a76028c5d13aa551ce57c8492552616..007d3b0967019504323196495a058440833d9578 100644
--- a/res/res_hep.c
+++ b/res/res_hep.c
@@ -560,6 +560,7 @@ static void hepv3_config_post_apply(void)
 	}
 
 	ao2_global_obj_replace_unref(global_data, data);
+	ao2_ref(data, -1);
 }
 
 /*!