1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Add Systemtap package

This commit is contained in:
Ycarus (Yannick Chabanois) 2023-05-09 21:15:28 +02:00
parent 2d41636606
commit e22b863f26
9 changed files with 379 additions and 0 deletions

View file

@ -0,0 +1,15 @@
--- a/util.cxx 2023-05-03 13:20:34.930972141 +0200
+++ b/util.cxx 2023-05-03 13:21:15.398273958 +0200
@@ -257,8 +257,10 @@
{
char *dirc, *basec, *bname, *dname;
- dirc = strdupa (path.c_str());
- basec = strdupa (path.c_str());
+ dirc = strdup (path.c_str());
+ basec = strdup (path.c_str());
dname = dirname (dirc);
bname = basename (basec);
+ free(dirc);
+ free(basec);
directory = dname;