aboutsummaryrefslogtreecommitdiffstats
path: root/libasn1fix
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2006-09-12 05:19:28 +0000
committerLev Walkin <vlm@lionet.info>2006-09-12 05:19:28 +0000
commitf4b1d7faf8d8181058d82cf6fe47e957fcad615b (patch)
tree0723cdea79b6e6ff13f096c396b4cce79302091e /libasn1fix
parentffd73479fdeb5b53991fee277ff3a22b35e462e6 (diff)
api change
Diffstat (limited to 'libasn1fix')
-rw-r--r--libasn1fix/asn1fix_bitstring.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libasn1fix/asn1fix_bitstring.c b/libasn1fix/asn1fix_bitstring.c
index 5f30ea4f..8cf6b95e 100644
--- a/libasn1fix/asn1fix_bitstring.c
+++ b/libasn1fix/asn1fix_bitstring.c
@@ -229,14 +229,14 @@ asn1f_BS_unparsed_convert(arg_t *arg, asn1p_value_t *value, asn1p_expr_t *ttype)
arg->expr->Identifier,
arg->expr->_lineno
);
- asn1p_free(asn);
+ asn1p_delete(asn);
return -1;
}
bits = aI + 1; /* Number of bits is more than a last bit position */
bitbuf = calloc(1, 1 + ((bits + 7) / 8));
if(bitbuf == NULL) {
- asn1p_free(asn);
+ asn1p_delete(asn);
return -1;
}
@@ -281,7 +281,7 @@ asn1f_BS_unparsed_convert(arg_t *arg, asn1p_value_t *value, asn1p_expr_t *ttype)
bitbuf[set_bit_pos>>3] |= 1 << (7-(set_bit_pos % 8));
}
- asn1p_free(asn);
+ asn1p_delete(asn);
free(value->value.string.buf);
value->type = ATV_BITVECTOR;
value->value.binary_vector.bits = bitbuf;