Fix possible memory leak in runScript.c
This was reported by cppcheck over require's code: require-ess/src/runScript.c:128:12: error: Common realloc mistake: 'line_raw' nulled but not freed upon failure [memleakOnRealloc] if ((line_raw = realloc(line_raw, line_raw_size *= 2)) == NULL) ^ Unfortunately realloc can return null, in that case if we use something like line_raw = realloc(line_raw, size); The memory pointed by line_raw is lost.
parent
b2085515
No related branches found
No related tags found
This commit is part of merge request !131. Comments created here will be created in the context of that merge request.
Please register or sign in to comment