One-level reference should be enough
authorZdeněk Šustr <sustr4@cesnet.cz>
Mon, 3 Sep 2012 10:08:15 +0000 (10:08 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Mon, 3 Sep 2012 10:08:15 +0000 (10:08 +0000)
org.glite.lb.common/interface/authz.h
org.glite.lb.common/src/context.c

index 12ed37a..0c06f6a 100644 (file)
@@ -65,7 +65,7 @@ typedef struct _edg_wll_mapping_rule {
 } _edg_wll_mapping_rule;
 
 typedef struct _edg_wll_id_mapping {
-       struct _edg_wll_mapping_rule **rules;
+       struct _edg_wll_mapping_rule *rules;
        int num;
 } _edg_wll_id_mapping;
 
index d0efd1a..4a02168 100644 (file)
@@ -194,9 +194,8 @@ void edg_wll_FreeContext(edg_wll_Context ctx)
        }
        if (ctx->id_mapping.num) {
                for (i = 0; i < ctx->id_mapping.num; i++) {
-                       free(ctx->id_mapping.rules[i]->a);
-                       free(ctx->id_mapping.rules[i]->b);
-                       free(ctx->id_mapping.rules[i]);
+                       free(ctx->id_mapping.rules[i].a);
+                       free(ctx->id_mapping.rules[i].b);
                }
                free(ctx->id_mapping.rules);
                ctx->id_mapping.num = 0;