Commit 076c3426 authored by Geoff Simmons's avatar Geoff Simmons

Fix a minor memory leak.

parent a186f1d4
......@@ -512,7 +512,7 @@ vmod_vdp__init(VRT_CTX, struct VPFX(pipe_vdp) **vdpp, const char *obj_name,
AN(obj_name);
if (vdp_name == NULL || *vdp_name == '\0')
vdp_name = strdup(obj_name);
vdp_name = obj_name;
#define CHK_NAME(nm) do { \
if (strcmp(vdp_name, (nm)) == 0) { \
......
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