mirror of
https://github.com/open-simh/simtools.git
synced 2026-05-04 15:05:35 +00:00
Plug a memory leak.
This commit is contained in:
@@ -231,6 +231,7 @@ MLB *mlb_rsx_open(
|
|||||||
} else if (WORD(buff) != 01001) { /* Is this really a macro library? */
|
} else if (WORD(buff) != 01001) { /* Is this really a macro library? */
|
||||||
/* fprintf(stderr, "error: first word not correct value\n"); */
|
/* fprintf(stderr, "error: first word not correct value\n"); */
|
||||||
mlb_rsx_close(mlb); /* Nope. */
|
mlb_rsx_close(mlb); /* Nope. */
|
||||||
|
free(buff);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user