~ubuntu-branches/ubuntu/trusty/cloog/trusty

« back to all changes in this revision

Viewing changes to isl/isl_hmap_map_basic_set.c

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-10-17 15:54:24 UTC
  • mfrom: (3.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20131017155424-3q1gw7yhddylfkpj
Tags: 0.18.1-1
* New upstream version.
* Add a comment to build-depend on libpod-latex-perl | perl (<< 5.17.0),
  when the documentation is built. Closes: #711681.
* Use dh_autotools-dev to update config.{sub,guess}. Closes: #719957.

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
        entry = isl_hash_table_find(ctx, &hmap->table, hash, &has_key, key, 1);
79
79
 
80
80
        if (!entry)
81
 
                return -1;
 
81
                goto error;
82
82
 
83
83
        if (entry->data) {
84
84
                pair = entry->data;
89
89
        }
90
90
 
91
91
        pair = isl_alloc_type(ctx, struct isl_map_basic_set_pair);
92
 
        if (!pair) {
93
 
                isl_map_free(key);
94
 
                isl_basic_set_free(val);
95
 
                return -1;
96
 
        }
 
92
        if (!pair)
 
93
                goto error;
97
94
 
98
95
        entry->data = pair;
99
96
        pair->key = key;
100
97
        pair->val = val;
101
98
        return 0;
 
99
error:
 
100
        isl_map_free(key);
 
101
        isl_basic_set_free(val);
 
102
        return -1;
102
103
}