Staging
v0.5.1
https://github.com/python/cpython
Revision f04299d978793be33828dc4d5f46e9b54c81a0a2 authored by Miss Islington (bot) on 17 September 2019, 06:14:20 UTC, committed by GitHub on 17 September 2019, 06:14:20 UTC
(cherry picked from commit 8debfa50407107ff2329d01081cdc12d359f1d12)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent d90bb23
Raw File
Tip revision: f04299d978793be33828dc4d5f46e9b54c81a0a2 authored by Miss Islington (bot) on 17 September 2019, 06:14:20 UTC
bpo-38175: Fix a memory leak in comparison of sqlite3.Row objects. (GH-16155)
Tip revision: f04299d
dynload_dl.c

/* Support for dynamic loading of extension modules */

#include "dl.h"

#include "Python.h"
#include "importdl.h"


extern char *Py_GetProgramName(void);

const char *_PyImport_DynLoadFiletab[] = {".o", NULL};


dl_funcptr _PyImport_FindSharedFuncptr(const char *prefix,
                                       const char *shortname,
                                       const char *pathname, FILE *fp)
{
    char funcname[258];

    PyOS_snprintf(funcname, sizeof(funcname), "%.20s_%.200s", prefix, shortname);
    return dl_loadmod(Py_GetProgramName(), pathname, funcname);
}
back to top