[plots] error path return fixups -- thanks, unit tests!

dankamongmen/thirdpass
nick black 3 years ago committed by Nick Black
parent 4ca2bb0940
commit 98d506d011

@ -422,6 +422,7 @@ ncuplot* ncuplot_create(ncplane* n, const ncplot_options* opts, uint64_t miny, u
return ret; return ret;
} }
free(ret); free(ret);
ret = NULL;
} }
return ret; return ret;
} }
@ -453,6 +454,7 @@ ncdplot* ncdplot_create(ncplane* n, const ncplot_options* opts, double miny, dou
return ret; return ret;
} }
free(ret); free(ret);
ret = NULL;
} }
return ret; return ret;
} }

Loading…
Cancel
Save