Commit 4d24303c authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Delete compiled VCL file after we tried to load it.


git-svn-id: http://www.varnish-cache.org/svn/trunk@271 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent bc4cc708
......@@ -3,6 +3,7 @@
*/
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <assert.h>
#include <stdlib.h>
......@@ -69,6 +70,7 @@ CVCL_Load(const char *fn, const char *name)
assert(vcl != NULL);
vcl->dlh = dlopen(fn, RTLD_NOW | RTLD_LOCAL);
unlink(fn);
if (vcl->dlh == NULL) {
fprintf(stderr, "dlopen(%s): %s\n", fn, dlerror());
free(vcl);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment