perf symbols: Fix random fd closing with no libelf
[firefly-linux-kernel-4.4.55.git] / tools / perf / util / symbol-minimal.c
index 2d2dd0532b5a971e588086c0605ae0d6ed4080df..ac7070a2f2b6defd3cbd62396ed5122584b9ef4c 100644 (file)
@@ -253,6 +253,7 @@ int symsrc__init(struct symsrc *ss, struct dso *dso __maybe_unused,
        if (!ss->name)
                goto out_close;
 
+       ss->fd = fd;
        ss->type = type;
 
        return 0;