Commit eb4cd0c2 authored by Pau Espin Pedrol's avatar Pau Espin Pedrol Committed by Mouse

aper: Fix regression reusing allocated sptr decoding CHOICE

Recent commit abd1faa6 broke passing
already existing output decoded structre as sptr. As a result, a new
sptr was always allocated, and the old one leaked.

Fixes: abd1faa6
parent 23751fcd
......@@ -17,7 +17,7 @@ CHOICE_decode_aper(const asn_codec_ctx_t *opt_codec_ctx,
asn_TYPE_member_t *elm = NULL; /* CHOICE's element */
void *memb_ptr = NULL;
void **memb_ptr2 = NULL;
void *st = *sptr = NULL;
void *st = *sptr;
int value = 0;
if(ASN__STACK_OVERFLOW_CHECK(opt_codec_ctx))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment