(decode_type): fail on malloc error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8443 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -65,7 +65,7 @@ decode_type (const char *name, const Type *t)
|
||||
char *s;
|
||||
asprintf(&s, "(int*)%s", name);
|
||||
if(s == NULL)
|
||||
return ENOMEM;
|
||||
errx (1, "out of memory");
|
||||
decode_primitive ("integer", s);
|
||||
free(s);
|
||||
}
|
||||
|
Reference in New Issue
Block a user