typo fix
diff --git a/libasn1compiler/asn1c_C.c b/libasn1compiler/asn1c_C.c
index 63648cd..eb84993 100644
--- a/libasn1compiler/asn1c_C.c
+++ b/libasn1compiler/asn1c_C.c
@@ -2466,7 +2466,7 @@
 		OUT("\tFREEMEM(st->buf);\n");
 		OUT("} else {\n");
 		OUT("\tst = (*sptr = CALLOC(1, sizeof(*st)));\n");
-		OUT("\tif(!st) { FREEMEM(nptr); return -1; }\n");
+		OUT("\tif(!st) { FREEMEM(nstr); return -1; }\n");
 		OUT("}\n");
 		OUT("st->buf = nstr;\n");
         OUT("st->size = sizeof(defv) - 1;\n");